React Game Project - Part 2
Follow Up Questions
- How should you name a file that contains code for a React component?
- T/F - Self-closing elements must include a forward slash before the closing
'greater-than' character (>).
- How can you display an image in a React component?
- T/F - In order to use a component inside another component, it must be imported.
- T/F - Attribute names in JSX use camelCasing.
- How do you import the useState() function (show the code you would write to import it).
- Explain why we made imgWidth a 'state' variable.
- Explain what the useState() function returns.
- Explain the purpose of the parameter that is passed into the useState() function.