Advertisement
Guest User

Untitled

a guest
Feb 27th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. <div>
  2. <div className="radio">
  3. <label>
  4. <input
  5. type="radio"
  6. name="value"
  7. onChange={this._handleInputChange}
  8. value="1"
  9. checked={this.props.value === "1"}
  10. />
  11. True
  12. </label>
  13. </div>
  14. <div className="radio">
  15. <label>
  16. <input
  17. type="radio"
  18. name="value"
  19. onChange={this._handleInputChange}
  20. value="0"
  21. checked={this.props.value === "0"}
  22. />
  23. False
  24. </label>
  25. </div>
  26. </div>
  27.  
  28. _handleInputChange(e) {
  29. this.props.handleChange(e);
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement