View on GitHub

reading-notes

CodeFellows Class Reading Notes

Questions:

Does a deployed React application require a server?

You do not need a web server in order to run a React app - React builds a virtual DOM and does its diff operations on the client’s browser

Source: https://stackoverflow.com/questions/26696204/does-react-js-require-server-side

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

Unit testing looks at code in isolation whereas behavior-driven testing looks at overall outcomes of the system. Because React is state based and focused on user experience, behavioral testing is more in line with the ethos of React app development.

What does npm run build do?

npm run build runs the build field from the package.json scripts field

Source: https://stackoverflow.com/questions/43664200/what-is-the-difference-between-npm-install-and-npm-run-build

Describe the actual composition / architecture of a React application

React is by nature a very modular way of building an app. ‘It lets you compose complex UIs from small and isolated pieces of code called “components”.’

Source: https://reactjs.org/tutorial/tutorial.html#what-are-we-building


Definitions

Term Definition Source
BDD Behavior-Driven Development, an Agile software development process that encourages collaboration among devs, QA and non-tech participants in a software project. https://en.wikipedia.org/wiki/Behavior-driven_development
Acceptance Tests Tests created to confirm that software as built matches the requirements provided. https://blog.rapid7.com/2015/02/22/acceptance-tests-in-practice-behavior-driven-development/
Mounting The process of outputting the virtual representation of a component into the final UI representation https://stackoverflow.com/questions/31556450/what-is-mounting-in-react-js#:~:text=Mounting%20is%20the%20process%20of,element)%20in%20the%20DOM%20tree.
Build The process of converting source code files into standalone software artifact(s) that can be run on a computer, or the result of doing so https://en.wikipedia.org/wiki/Software_build#:~:text=In%20software%20development%2C%20a%20build,the%20result%20of%20doing%20so.

Home