I am quite new to React and after going through some tutorials, I was trying the below code of mine.
I made one component, passed props to it from a store, on compo
compo
You can do shortcut via inline function if you want to simply change the state variable without declaring a new function at top:
this.setState({ text: e.target.value })}/>