How do I get something typed in an input text, and when I press a "Send" button, I send that text somewhere in my code, like we use 'this.state.algumaCoise' ... code:
render(){
return(
<div className="container">
<div className="box box-primary direct-chat direct-chat-primary ">
<Chat />
<div nameClass="direct-chat-msg right">
<div className="direct-chat-info clearfix">
<span className="direct-chat-name pull-right">TEXTO AQUI</span>
<span className="direct-chat-timestamp pull-right">TEXTO AQUI</span>
</div>
<img className="direct-chat-img-right" alt="message user image"/>
</div>
<div className="box-footer">
<div className="input-group">
<input
ref="topic"
type="text"
name="message"
placeholder="Type your message here..."
className="form-control"/>
<span className="input-group-btn">
<button type="button" className="btn btn-flat btn-primary">Send</button>
</span>
</div>
</div>
</div>
</div>
);
}