Live rendering
Live rendering lets you render your state on the fly on your renderer, no need to have a dedicated component to act as an intermediary.

There are three mechanisms for live rendering.
Direct
Data only
You can use the method connectLive from the ConanState object directly.
It takes a renderer function as argument.
All you need is to be able to access the ConanState instance.
Data and Monitor Info
HOC
We can also use a High Order Component with live rendering, by using the components StateLive and ContextStateLive:
Composition
Live rendering can also be used with composition. ConanJs provides the functions contextStateLive and stateLive for it:
Please take a look at this code sandbox to see al the subscription approaches working:
Last updated
Was this helpful?