In React, usually only two main tools are used.
React is a Single-Page Application (SPA) library, where different pages are loaded without reloading the entire page. This is called Routing.
State Management is a technique in React through which we handle the data being used inside components — especially when the data needs to be shared between multiple components.
In React apps, many times:
In such cases, proper state management becomes necessary.
To manage state, we generally use two core actions:
const [count, setCount] = useState(0)) → here count is used to readsetCount(newValue)) to update