Closed eysi09 closed 8 years ago
Hi,
See NuclearJS React addons, which has nuclearComponent high-order component that uses ReactMixin to get the data bindings and then passes the data down as props to the wrapped component.
Raul.
Hi Raul.
Thanks for your reply. It seems that method will do the trick.
-Eysi.
You're welcome.
Hi all,
I'm using ES6 class extension syntax to create React components, that is
class MyComponent extends React.Component {}
rather thanReact.createClass({})
.However, I'm having problems when using the Reactor.ReactMixin since it seems to call
getInitialState()
on the component whereas the ES6 react components use theconstructor
method instead. Is there a way around this or will I have to stickReact.createClass
?