You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 19, 2018. It is now read-only.
We currently implement some features which are different with ReactJS. They are
self.state updated immediately after setting it even without the render to be finished.
shouldComponentUpdate is handled by doing either shallow or deep compare on state & props.
I am thinking about at least write a document (e.g. Differences to ReactJS) on this topic given that there are users who already be familiar with reactjs.
@catmando is there something we do significantly different from reactjs I missed here ?
I think a good way to go about this would be to implement a small isomorphic app(without the rails integration, components only) side by side with a vanilla react app. Best way to learn code is to look at code IMO :)
state handling is like in react now since lap20
should_component_update? does a opal ruby comparision next != current for state and props,
People complained about it not working, now, with above change, there are no more complains so far.
I think from the ruby developers point of view, when passing ruby objects as params or to state, its expected, when comparing them, that they compare like ruby objects, not like some obscure js shallow whatever that cant handle ruby objects.
Thats why i close this.
We currently implement some features which are different with ReactJS. They are
self.state
updated immediately after setting it even without the render to be finished.shouldComponentUpdate
is handled by doing either shallow or deep compare on state & props.I am thinking about at least write a document (e.g. Differences to ReactJS) on this topic given that there are users who already be familiar with reactjs.
@catmando is there something we do significantly different from reactjs I missed here ?
/cc @barriehadfield
The text was updated successfully, but these errors were encountered: