mayu-live / framework

Mayu is a live updating server-side component-based VDOM rendering framework written in Ruby
https://mayu.live
GNU Affero General Public License v3.0
135 stars 4 forks source link

Transform `@foo` to `self.state[:foo]` #58

Open aalin opened 1 year ago

aalin commented 1 year ago

StateAndPropsTransformer transformes $foo to self.props[:foo]. Would be convenient to have the same thing for state.

Not 100% sure how it should work with update { |state| }.. could probably figure out something clever... or maybe use mayu-signals