I am new in react.js. I am trying to collect values from a Form. I read several SO question and article found from Google search. I am confused now. Which one is the actual way of collecting values from a Form in react.js ? I read this SO question. I found here
<input type="text" name="email" placeholder="Email" value={this.state.email} onChange={this.handleEmailChange} />
I read this article and found below code
<input type="text" name="fname" value={fname} onChange={this.onChange} />
In a Facebook group, members advised me to use this.
Which way should I follow ? Should I use state
?