reading-notes

Reading Notes

View the Project on GitHub simon-panek/reading-notes

Code 401: Class 27 - Props and State


Questions

  1. Does a deployed React application require a server? A server is not explicitly required for deploying a React app.

  2. Why do we prefer to test a React application at the behavior rather than unit level? Unit testing is good for confirming that an algorithm will always produce the desired result, but React apps are created to generate a user experience and it is more crucial that each state is rendered correctly at the correct time.

  3. What does npm run build do? This command creates a build directory that houses a production build of the app.

  4. Describe the actual composition/architecture of a React application.

Vocabulary

Read: Components and Props

Read: State and Lifecycle

Read: Form

Read: Handling Events

Read: Understanding React ‘setState

Read: RTL Testing Example

Read: RTL Testing Example

Bookmark: Roles Reference


Return to reading-notes Deployed Site

Return to reading-notes Mark Down