Advertisement
Guest User

Untitled

a guest
Dec 7th, 2016
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. var MyComponent = React.createClass(
  2. {
  3. test: function () {
  4.  
  5. this.setState({ editing: true });
  6. },
  7. render: function () {
  8. return (<div>Hello World</div>);
  9. }
  10. }
  11. );
  12.  
  13. var MyComponent = React.createClass(
  14. {
  15. test: function () {
  16.  
  17. this.setState({ editing: true });
  18. },
  19. render: function () {
  20. //return (<div>Hello World</div>);
  21. }
  22. }
  23. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement