# Knowledge Check: State the concept - React Basic

1. **In React, can state be considered data?**
    
    * <mark>Yes</mark>
        
    * No
        
2. **In React, can props be considered data?**
    
    * <mark>Yes</mark>
        
    * No
        
3. **Choose the correct statement.**
    
    * <mark>The props object represents data that is external to a component, and state represents data that is internal to a component.</mark>
        
    * The props object represents data that is internal to a component, and state represents data that is external to a component.
        
4. **What does the useState hook do?**
    
    * <mark>It allows a component to have its own state.</mark>
        
    * It allows a component to receive state from its parent.
        
5. **Based on the code below, is the userName variable external or internal data of the DisplayUser component?**
    
    ```javascript
    function DisplayUser(props) {
      return (
        <h1>{props.userName}</h1>
      );
    }
    ```
    
    * The userName value is data that is internal to the DisplayUser component
        
    * <mark>The userName value is data that is external to the DisplayUser component</mark>
