Skip to content

coryhouse/americo-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project was bootstrapped with Create React App.

Quiz

  1. What is JSX? How does it differ from HTML?
  2. What generator did we use to create our app? Who supports it?
  3. What command starts the app?
  4. What command builds the app?
  5. What Hook did we use to declare state?
  6. The hook we used for state returns what data structure? What JS feature did we use to handle the response?
  7. When do we need to declare state in React?
  8. What is the name for the arguments that we pass to a React component? What is the data type for this argument?
  9. Where is our app's entry point located?
  10. Where do we declare the HTML element that our React app should render into?
  11. Is JSX sent to the browser? If not, what is?
  12. What tool is compiling our JS so that it runs in old browsers?
  13. What is the name of the scripts we declare in package.json?
  14. How did we declare a base URL for our API's?
  15. What command did we use to call our API in React?
  16. Is JSX required?
  17. What is destructuring? Why do we do it?
  18. What tool is checking our code quality/standards and checking our code for common errors and issues?
  19. How do you run an npm script?
  20. How do you copy an object in JS?
  21. What tool are we using for our mock API? How did we configure it?
  22. What tool are we using to automatically format our code?
  23. How did we automate starting our app and API at the same time?
  24. Name 2 ways to declare a React component. Which should you prefer?
  25. How did we debug?
  26. What’s a promise? How do we handle a successful promise?
  27. 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?

Available Scripts

In the project directory, you can run:

yarn start

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.

yarn test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

yarn build

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.

yarn eject

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.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting

Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration

Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

yarn build fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published