React Game Project - Part 2

Follow Up Questions

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