Rootly logoRootly

Notes

Manage your learning questions and answers

Course: Ultimate React & Next.js

What is Derived State?

Ultimate React & Next.jsJonas Schmedtmann
Getting It9/29/2025
Click the eye icon to reveal answer

When do we need to lift up State?

Ultimate React & Next.jsJonas Schmedtmann
Clear9/25/2025
Click the eye icon to reveal answer

What is the difference between Local State and Global State?

Ultimate React & Next.jsJonas Schmedtmann
Getting ItFlagged9/25/2025
Click the eye icon to reveal answer

How to create a controlled form element in React?

Ultimate React & Next.jsJonas Schmedtmann
ClearHas Snippet9/20/2025
Click the eye icon to reveal answer

How do you create a select list that has options from 1 to 20 (as numbers) dynamically?

Ultimate React & Next.jsJonas Schmedtmann
ClearHas SnippetFlagged9/16/2025
Click the eye icon to reveal answer

How do you make conditional styling on an element in JSX?

Ultimate React & Next.jsJonas Schmedtmann
ClearHas Snippet9/16/2025
Click the eye icon to reveal answer

What to do if you want to update a state that depends on the current state value?

Ultimate React & Next.jsJonas Schmedtmann
ClearHas Snippet9/14/2025
Click the eye icon to reveal answer

Why do we have to use setState instead of updating state manually?

Ultimate React & Next.jsJonas Schmedtmann
Getting It9/9/2025
Click the eye icon to reveal answer

What happens when a component's state is updated?

Ultimate React & Next.jsJonas Schmedtmann
ClearFlagged9/9/2025
Click the eye icon to reveal answer

Why in event handlers such as onClick we need to pass a reference to the function or use an arrow function instead of calling it manually?

Ultimate React & Next.jsJonas Schmedtmann
Getting ItHas SnippetFlagged9/9/2025
Click the eye icon to reveal answer

Why would we use Ternary Operator over AND (&&) for setting className dynamically?

Ultimate React & Next.jsJonas Schmedtmann
Getting ItHas SnippetFlagged9/9/2025
Click the eye icon to reveal answer

When does the && operator become useful?

Ultimate React & Next.jsJonas Schmedtmann
Getting ItHas SnippetFlagged9/9/2025
Click the eye icon to reveal answer