Knowledge check: State or stateless - React Basic

Knowledge check: State or stateless - React Basic

  1. What is a stateless component?

    • A component that doesn’t track its parent’s state.

    • A component that doesn’t track its own state.

  2. A stateful component must have a props object.

    • False

    • True

  3. To turn a stateless component into a stateful component, you must pass it a props object.

    • True

    • False

  4. The process of lifting up state can lead to: Select all that apply.

    • A stateful child component controlling the state of a stateful parent component.

    • A stateful child component controlling the state of a stateless parent component.

    • A stateful component becoming a stateless component.

    • A stateless component becoming a stateful component.

  5. A prop doesn't have to always pass state.

    • True

    • False