React Flashcards
A software _________ provides a standard way to build and deploy applications. It is a universal, reusable software environment that provides particular functionality as part of a larger software platform to facilitate development of software applications, products and solutions.
framework
An in-memory object that represents a DOM structure and can be manipulated with JavaScript before updating the real DOM
Virtual DOM
A mix of JavaScript and XML that facilitates rendering the appropriate HTML Components: standalone, independent parts of an application that are responsible for handling only a single UI element
JSX
A markup language (like HTML) that defines a set of rules for encoding documents in a format that is both human-readable and machine-readable
Extensible Markup Language (XML)
Standalone, independent parts of an application that are responsible for handling only a single UI element
Components
Components that simply need to render content to the DOM, and do not need to be aware of any application data that might be changing
Functional components
ES6 classes that extend an abstract ‘Component’ class, given to us by default by React. They typically keep track of some sort of application data.
Class Components
An object that is given from its parent component down to the child functional/class component, should remain immutable
Props (properties)
Holds data that represents the actual _____ of an application, can be changed and mutated through user interactions
State
Test the smallest ____ of functionality, typically a method/function. For example, when you call a specific method on a class, you would likely expect a value to be returned. Should be focused on one particular feature.
Unit test
Build on unit tests by combining the units of code and testing that the resulting combination functions correctly
Integration test
Once an application is ready to use, it undergoes testing in a browser by a user (or automated user) to verify that the features behave normally and meet expectations
Acceptance test aka end-to-end tests
A JS framework created by Facebook that is included in React and acts as a test runner, assertion library, and mocking library. It can also be used for snapshot testing.
Jest
Created in order to replicate the data or functions you would expect to have or be fired, or when we want to set up a function that runs in place of another function
Mocks
A light-weight solution for testing React components. It provides light utility functions on top of react-dom and react-dom/test-utils, in a way that encourages better testing practices.
React Testing Library