11. What is create-react-app?

  • It’s an npm package used to build a boilerplate React app.
  • It’s a command you can use in a component.
  • It’s a command you run when you want to serve your app in the browser.
  • It’s a stand-alone application on the web.

12. Imagine you want to build a brand new React app, named “example”. Choose the correct command to build a starter React app to work off of.

  • npm initialize react-app example
  • node init react-app example
  • npm init react-app example
  • npm install react-app example

13. True or false? When you write arrow functions, for any number of parameters other than a single parameter, using parentheses around parameters is compulsory.

  • True
  • False

14. True or false? You can use function calls in JSX.

  • True
  • False

15. True or false? When an arrow function has a single parameter, you do not need to add parentheses around the item parameter (to the left of the arrow).

  • True
  • False

Leave a Reply