1. How do you create a React App from the terminal command line?
npx create-react-app 'app name'
2. If you clone a React App that has already been created, what command is needed to start developing with its dependencies?
npm install
3. How do you start the in-browser development server for a React App?
npm start
4. What folder in a React App should component files be created in?
src/components
5. What is the syntax for a function based component?
its javascript functionsyntax.for example --
functionfunctionName (props) {
return (
<element>text if you want{props.name}more text maybe</element>
)
}
6. What direction are props passed in a React Component?
uni-directional. which means-- one way, from parent to child
7. How is a React Component accessed in another file?
using this syntax:
import Name from "filepath"
and then the syntax for the location you want is:
<Name />
8. How do we gain access to props in a child component?