Converts a function component into a reactive component. A reactive component receives reactive props and
re-renders automatically when its data dependencies are modified.
If your function component makes use of a reactive value, the component has to be wrapped by makeReactive so
that it can re-render when the reactive value changes.
Converts a function component into a reactive component. A reactive component receives reactive props and re-renders automatically when its data dependencies are modified.
If your function component makes use of a reactive value, the component has to be wrapped by
makeReactive
so that it can re-render when the reactive value changes.Example
Simple usage of
makeReactive
.Example
Once a component is made reactive, it may access reactive values from any sources, not just from props, contexts and hooks.
Returns
A reactive function component.