React

71 flashcards · Programming Languages · by Orlando Flores

  1. React puts your updater functions in a ...

    queue

  2. is a special type of effect Hook that is invoked before the browser repaints the screen

    useLayoutEffect

  3. useLayoutEffect is a special type of effect Hook that is invoked before the browser ... the screen

    repaints

  4. This Hook is the same as the useEffect Hook except that it fires before the browser repaints the screen to measure the layout.

    useLayoutEffect

  5. it is helpful for extracting the state management out of the component.

    useReducer

  6. renders a client–side SPA on the server and then sends a fully rendered HTML page to the client

    SSR

  7. useInsertionEffect, fires before React makes changes to the DOM, such as adding ... CSS

    dynamic

  8. This Hook fires before React makes changes to the DOM, such as adding dynamic CSS

    useInsertionEffect

  9. Prop ... refers to sending props from a higher–level component to a lower–level component

    drilling

  10. ... components are components that render the same output for the same state and props.

    Pure

  11. It uses reusable or composable UI ... to develop the view at a fast pace (DRY) principle

    components

  12. It follows a ... data flow or one–way data binding in which the data flows from parent to child but not vice versa.

    unidirectional

  13. It supports ..., which offers quick initial page load times and SEO–friendly applications compared to CSR.

    SSR

  14. SyntheticEvent is an object that wraps the native Event in React, like making sure you have the same behavior across ...

    browsers

  15. virtual DOM is an in–..., lightweight virtual representation of Real DOM

    memory

  16. ... DOM is a web component technology that’s designed primarily for scoping variables and CSS

    Shadow

  17. Ref is the shorthand for a ... to an element or a component.

    reference

  18. Refs are used to ... DOM nodes or React elements that are created in the render method.

    access

  19. DOM ... is taken care of by the React library under the hood

    manipulation

  20. Ref is the shorthand for a ... to an element or a component.

    reference

  21. Refs are used to access DOM ... or React elements that are created in the render method.

    nodes

  22. Refs are used to access DOM nodes or React elements that are created in the ... method.

    render

  23. The main purpose of ... is to allow your components to access basic global data

    context

  24. downloads a minimal HTML page and it renders using JavaScript

    CSR

  25. The data fetching, templating, and routing processes are handled on the client side– that is, by the browser.

    CSR

  26. converts HTML files on the server into a fully rendered HTML page that includes the data for the client

    SSR

  27. isolate the stateful logic from the components

    hooks

  28. The Hooks feature is a way for your function components to ... into React’s life cycle and state

    hook

  29. ... Hooks at the top level only

    Call

  30. Call Hooks from ... functions only

    React

  31. You cannot write Hooks inside ... components

    class

  32. Hooks have been created for the ... components only

    function

  33. is used to add the state to a function component

    usestate

  34. The state ... function doesn’t update the current state in the already executing code.

    setter

  35. The state setter function doesn’t ... the current state in the already executing code.

    update

  36. In this code, a => a + 1 is an ... function.

    updater

  37. const [state, dispatch] = useReducer(..., initialCount, init);

    reducer

  38. const [state, dispatch] = useReducer(reducer, ..., init);

    initialCount

  39. const [state, dispatch] = useReducer(reducer, initialCount, ...);

    init

  40. const [..., dispatch] = useReducer(reducer, initialCount, init);

    state

  41. const [state, ...] = useReducer(reducer, initialCount, init);

    dispatch

  42. There is no restriction on the nesting level or number of times you override the context using a ...

    provider

  43. There is no restriction on the nesting level or number of times you ... the context using a provider.

    override

  44. This is a frequently used Hook to connect a component to an external system.

    useEffect

  45. ... Hook is used to cache the result of an expensive calculation between re–renders.

    useMemo

  46. The useMememo() Hook returns the value of the ... calculation by accepting two arguments.

    expensive

  47. It uses a ... DOM instead of Real DOM since Real DOM manipulations are expensive.

    virtual

  48. An ... Order Component is a function that takes a component and returns a new component.

    High

  49. A React ... is a syntax that allows you to wrap or group a list of child elements to a React component without the need to add an extra node to the DOM.

    fragment

  50. are arguments that appear in the form of either individual values or an object holding a set of values that are passed into components.

    props

  51. Props, are ... that appear in the form of either individual values or an object holding a set of values that are passed into components.

    arguments

  52. Props are ... (read–only) in nature and trying to modify these values will throw an error.

    immutable

  53. ... is an in–built JavaScript object where you store property values that belong to the component.

    State

  54. State is mutable and ... asynchronously

    changed

  55. Managed by the component

    state

  56. Props are ... from the parent component to the child component

    passed

  57. State cannot make components ...

    reusable

  58. State is used for rendering ... changes

    dynamic

  59. Props are Read–... and immutable

    only

  60. State cannot be accessed by ... components

    child

  61. Props are accessed by ... components

    child

  62. Props make components ...

    reusable

  63. Props are used for ... between components

    communication

  64. When you mutate an object directly, React doesn’t recognize the change, and no re–... occurs.

    render

  65. Instead of directly ... an object in state, create a new one, and then set the state to use that copy

    mutating

  66. Always use the ...–setting function (e.g., setPosition) to trigger a re–render with the updated state.

    state

  67. Always use the state–setting function (e.g., setPosition) to trigger a re–... with the updated state.

    render

  68. State ... in React are asynchronous.

    updates

  69. React batches state updates for ... reasons.

    performance

  70. SyntheticEvent is an object that wraps the native Event in React, like making sure you have the same ... across browsers.

    behavior

  71. SyntheticEvent is an object that ... the native Event in React, like making sure you have the same behavior across browsers.

    wraps