Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. class Home extends Component {
  2. ...
  3. render() {
  4. return (
  5. <div>
  6. <h2>Conversational Form</h2>
  7. <div id="cf-context" > // <-- the cf form will be bound to this element
  8. <form id="form" className="form" ref="form">
  9. <input type="text" ref="name" placeholder="Name" defaultValue={this.props.name}/>
  10. <input type="email" ref="email" placeholder="Email" defaultValue={this.props.email}/>
  11. <select ref="description" type="radio" id="links"> // <-- using selection for options
  12. <option value="request_1">Request 1</option>
  13. <option value="request_2">Request 2</option>
  14. </select>
  15. </form>
  16. </div>
  17. </div>
  18. );
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement