True or false? In React, you can use a ternary operator in a component's return statement in React.
True
False
React Router is...
A built-in part of React-DOM.
A stand-alone package that you can add to a React app.
A built-in part of React.
React Router has a
<Link>
element.True
False
Please choose the valid command to install react-player.
npm install react-player
npm-install react-player
npm-install-react-player
True or false? webpack is a module bundler.
True
False
What will be the output of the code below?
let name; if (Math.random() > 0.5) { name = "Mike"} else { name = "Susan"}
It will be 0.5
It will always be Susan
It will always be Mike
It will be sometimes Mike, and sometimes Susan, randomly
Is the following component syntactically correct?
import car from "./assets/images/car.jpg"; function CarImage() { return ( <img height={200} src={car} alt="Car image" /> ); }; export default CarImage;
Yes
No
What is an asset?
Images, stylesheets, fonts
Components
Images, video, and components
What is the syntax used to add a new dev dependency to a React app? Select all that apply.
node init some-package-name
npm install –save-dev some-package-name
npm i –save-dev some-package-name
npm init some-package-name
If your app can compile without it, you can keep an asset in a public folder.
True
False