This may be a naive question, but I couldn\'t find too much information on this topic. I have a fully functional react-redux application and I would now like to port it to
Some of the reusable things are styles
:
var style = {
box: {height: 30, width: 30, padding: 10, ect...}
}
Logic
such as state :
constructor(props){
super(props);
this.state= {text: "hi"};
}
the state can be shared between navite and dom like so
this.state.text
dom looks like this
this.state.text
You can even share functions but you have to be careful like it was stated above, as long as you're not directly invoking any dom or refs in your logic.
onClick(){
this.setState({text: "good bye"});
}