React Flashcards

1
Q

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.

A

framework

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

An in-memory object that represents a DOM structure and can be manipulated with JavaScript before updating the real DOM

A

Virtual DOM

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

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

A

JSX

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

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

A

Extensible Markup Language (XML)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Standalone, independent parts of an application that are responsible for handling only a single UI element

A

Components

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

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

A

Functional components

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

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.

A

Class Components

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

An object that is given from its parent component down to the child functional/class component, should remain immutable

A

Props (properties)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Holds data that represents the actual _____ of an application, can be changed and mutated through user interactions

A

State

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

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.

A

Unit test

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Build on unit tests by combining the units of code and testing that the resulting combination functions correctly

A

Integration test

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

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

A

Acceptance test aka end-to-end tests

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

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.

A

Jest

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

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

A

Mocks

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

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.

A

React Testing Library

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

A set of methods found in the parent class Component that fire at different points during the component lifecycle

A

lifecycle methods

17
Q

A library we use to validate the data type of props coming into a component; allows for more specific, helpful error messages

A

PropTypes

18
Q

Executing functions, where the second does not wait for the first to complete

A

Asynchronous

19
Q

Executing functions, where the second waits for the first to complete

A

Synchronous

20
Q

Monitors the Call Stack and the Callback Queue. If the Call Stack is empty, it will take the first event from the queue and will push it to the Call Stack, which effectively runs it.

A

Event Loop

21
Q

Executing more than one operation at a time

A

Parallelism

22
Q

An object representing the eventual completion or error of an operation, along with a value

A

Promise

23
Q

A function given to another function to be called at a later time

A

Callback

24
Q

A function that either takes a another function as a parameter or returns a function, or both

A

Higher Order Function

25
Q

A Router that uses the HTML5 history API (pushState, replaceState and the popstate event) to keep your UI in sync with the URL

A

BrowserRouter

26
Q

Its most basic responsibility is to render some UI when a location matches the route’s path

A

Route

27
Q

_s provide declarative, accessible navigation around your application

A

Link

28
Q

A special version of the Link that will add styling attributes to the rendered element when it matches the current URL.

A

NavLink

29
Q

Rendering a _ will navigate to a new location. The new location will override the current location in the history stack, like server-side redirects (HTTP 3xx) do.

A

Redirect

30
Q

Renders the first child Route or Redirect that matches the location. _ is unique in that it renders a route exclusively (only one route wins).

A

Switch

31
Q

A _ object contains information about how a Route path matched the URL.

A

match