0

I'm setting up a very simple React.js Plunker which does not seem to be working. My expectation is that the button should display. Can anyone help out and let me know what is wrong?

http://plnkr.co/edit/dGn5tJx4UbD1yXX0Q3vW?p=preview

var Button = React.createClass({
  render: function() {
    return: (
        <button>Test</button>
      )
  }
});

React.render(<Button />, document.getElementById("root"));

Thanks

Pianoc
  • 763
  • 1
  • 11
  • 32

1 Answers1

5

Your code has a colon after the return statement, which is causing it to throw a syntax error:

return:

Here's an updated/fixed plunkr.

Matt
  • 3,079
  • 4
  • 30
  • 36