// using return // parentheses need to be use for return that has more than 1 line, to not break the code // e.g return <layout/> return ( <layout value={this.setState[i]} onClick={) => thishandleClicki)} /> )
in HTML, you pass a string as the event handler
<button onclick="activateLink()"> Activate Link </button>
in React, you pass function instead
<button onClick={activateLink}> Activate Link </button>