class Application extends React.Component {
render() {
return [div]
[button onclick={() => {console.log('click'}}]button[/button]
[/div];
}
}
React.render(<Application />, document.getElementById('app'));
I have the above code in my react app, render component. Nothing happens as nothing print in console.
<button onClick={() => {console.log('clicked')}}> button </button>prettier?<and>getting converted to[and].