hyper-react
hyper-react copied to clipboard
The project has moved to Hyperstack!!
Implement the following pattern ``` ruby class Foo < React::Component::Base def self.my_components @my_components ||= [] end before_mount { self.class.my_components
_From @catmando on December 15, 2015 17:8_ React now has this notion of a "stateless" component, by which they mean a JS function that takes the "props" as it param,...
A bug occurred while investigating #122, ```ruby class MyComponent include React::Component param :tip def render div { params.tip } end end class TooltipExample include React::Component def render tip = span...
_From @wied03 on March 25, 2016 21:17_ For those of us that use the GrandCentral/Redux approach and keep most state outside the component, we don't want to hit any `Observable`...
children.empty? Seems to be just the way ruby works? perhaps there is a better way to define an enumerable?
Here is a falling test case ``` ruby it 'is supposed to work' do k = Class.new { include React::Component before_mount do state[:foo] = 'bar' end def render div {...
Observables should be deprecated. This was largely a ruby-ized version of the old react.js links. There are better patterns now (i.e. events or stores) (@zetachang - there is a deprecation...
I'm willing add a callback to a ref as they said in React documentation https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute They said that the string refs could be deprecated. What I was trying to achieve...
_From @catmando on February 29, 2016 20:54_ In writing documentation I realize we are at odds with Ruby terminology here. Should we allow "class:" as an alias for "type:" in...