Reactive React.render?

I’m curious if anyone has gone nuts and made a component derived from React.Component where the render method itself was made reactive (in Meteor terms)?

Without thinking about it too hard, it seems like it would work to track reactive data sources.

That same component could store local react state in Meteor session vars, so that during development or push events, the local state for everything doesn’t get lost. Would be kinda neat.

Not exactly the render method being reactive, but there is https://github.com/ultimatejs/tracker-react which makes the methods of a component reactive when a reactive data source is called from within them.

1 Like