This project was bootstrapped with Create React App.
- What is JSX? How does it differ from HTML?
- What generator did we use to create our app? Who supports it?
- What command starts the app?
- What command builds the app?
- What Hook did we use to declare state?
- The hook we used for state returns what data structure? What JS feature did we use to handle the response?
- When do we need to declare state in React?
- What is the name for the arguments that we pass to a React component? What is the data type for this argument?
- Where is our app's entry point located?
- Where do we declare the HTML element that our React app should render into?
- Is JSX sent to the browser? If not, what is?
- What tool is compiling our JS so that it runs in old browsers?
- What is the name of the scripts we declare in package.json?
- How did we declare a base URL for our API's?
- What command did we use to call our API in React?
- Is JSX required?
- What is destructuring? Why do we do it?
- What tool is checking our code quality/standards and checking our code for common errors and issues?
- How do you run an npm script?
- How do you copy an object in JS?
- What tool are we using for our mock API? How did we configure it?
- What tool are we using to automatically format our code?
- How did we automate starting our app and API at the same time?
- Name 2 ways to declare a React component. Which should you prefer?
- How did we debug?
- What’s a promise? How do we handle a successful promise?
- Is the code we see in the browser what’s actually running?
Why prefer const/let over var? How do we declare what values our component accepts? When do you declare a key? Why declare a key? What’s a good key? What’s a bad key? Why is client-side routing preferable to server-side? How do you make a function public? How do arrow functions differ from regular functions? How do you copy an object in JS? Is it deep or shallow? When does React re-render? What array method did we use to iterate over the list of users? What does it return? What is a predicate? What is a higher order function? List some higher order functions on the array prototype. How do you copy an object in JS? Is it deep, or shallow? What is a wildcard import? When is it useful? What are the benefits and downsides of using a default export? Var is dead. Why? What should you use instead? Does const make an object immutable? What is the current version of JS? How often are new versions released? When is the rest operator useful? How do we specify the types for each argument? What hook did we use to run code after render? When does React re-render? How do we handle an error from a promise? When you copy an object in JS, is it deep or shallow? What’s the difference? Why is client-side routing preferable to server-side? Is the code we see in the browser what’s actually running?
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
Note: this is a one-way operation. Once you eject
, you can’t go back!
If you aren’t satisfied with the build tool and configuration choices, you can eject
at any time. This command will remove the single build dependency from your project.
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject
will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
You don’t have to ever use eject
. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify