reading-notes

Notes for Codefellows Code 401 301 201 and 102

Reading Class 27: Props and State

Does a deployed React application require a server?

No, you can run npm build in a create-react-app in order to compile all react code into a build directory with a static index.html page.

Why do we prefer to test a React application at the behavior rather than the unit level?

React being used to create a front end UI, it is better to test the application using behavior driven development. When developing a React application each functionality maybe important. However, being a UI it is possible to create a more user friendly application using behvaioral driven test which containts context or the starting state. Followed by the event which is what the user does and the outcome being the expected result.

What does npm run build do?

source Creates a build directory with a production build of your app.

Describe the actual composition / architecture of a React application

source React - a popular front-end technology like AngularJS - is a Javascript framework, but it only works with the View layer, which means you have only the V in the MVC - Model-View-Controller - architecture. React gives you the template language and a few function hooks to render HTML.

Document the following Vocabulary Terms

BDD

medium Behaviour driven development is an agile software development process that encourages collaboration among developers, QA, and non-technical or business participants in a software project. It encourages teams to use conversation and concrete examples to formalize a shared understanding of how the application should behave

Acceptance Tests

wiki testing with respect to user requirements, based on acceptance criteria

mounting

source Mounting is the phase in which our React component mounts on the DOM (i.e., is created and inserted into the DOM). This method is called just before a component mounts on the DOM or the render method is called. After this method, the component gets mounted.

build

source a static compilation of all files in a react project, minified and combined for deployment. npm run build creates a build directory with a production build of your app

Preview

Skim the following materials in preparation for the upcoming lecture. Note the following as you browse the material, and be prepared to participate in discussions during lecture

Preparation Materials

Bookmark