# Knowledge check: Events and errors - React Basic

1. **When handling a click event in react, you should use the following attribute:**
    
    * Onclick
        
    * OnClick
        
    * on-click
        
    * <mark>onClick</mark>
        
2. **Inside a JSX element, you can assign a JSX expression to the onClick handler to handle a click in React.**
    
    * False
        
    * <mark>True</mark>
        
3. **You can place an opening and a closing parenthesis after the name of the event-handling function that you assign to the onClick attribute.**
    
    * True
        
    * <mark>False</mark>
        
4. **The try...catch syntax can be used in React in certain cases.**
    
    * <mark>True</mark>
        
    * False
        
5. Choose the valid example of an onclick event handler.
    
    * **&lt;button onclick={handleClick}&gt;Click me&lt;/button&gt;**
        
    * **&lt;button onClick={handleClick()}&gt;Click me&lt;/button&gt;**
        
    * **&lt;button on-click=”handleClick”&gt;Click me&lt;/button&gt;**
        
    * **<mark>&lt;button onClick={handleClick}&gt;Click me&lt;/button&gt;</mark>**
