1
2
// Example React.js Component
This component will increment the numClicks state variable every time you click the button. The onClick event on the button is `this.click.bind(this)` so that the state of the function is bound to the React class and not the event.
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.