Query Parameters

When working with the URLS for eg. https://jsonplaceholder.typicode.com/users

the we require the userdata whose specifications match our requirements:

We use query parameters:

[https://jsonplaceholder.typicode.com/users](<https://jsonplaceholder.typicode.com/users>)/username=Karianne

The above URL gives the userdata whose username is Karianne.

When we have more requirements say website must be kale.biz.

[https://jsonplaceholder.typicode.com/users](<https://jsonplaceholder.typicode.com/users>)/username=Karianne&website=kale.biz


Why Context API?

  1. Avoid Prop Drilling
  2. Centralized State Management

State Management

Maintaining a value for a state variable across all the components of React Project.

Prop Drilling

The process of passing data (props) from a higher-level component down to a lower-level component through intermediary components that do not need the data themselves.

To achieve state management in React Apps we perform this by passing the state from parent to children. Thus the state management is achieved throughout the Application Hierarchy