Term | |
---|---|
global state | a set of local states which are all concurrent with each other. … A global state in the time domain is also a global state in the causal domain |
global context | This is context that affects the entire application, and it will share data to everything in the React component tree. |
provider | The context provider accepts a value that will be passed to its children. All children components will re-render when the value changes. |
consumer | This is a React component that subscribes to context changes in value of the Provider. |
“Cookies are the data stored in the form of key-value pairs that are used to store information about the user on their computer by the websites that the users browse and use it to verify them”.
To set or remove the cookies, we are using a third-party dependency of react-cookie
Install : npm i react-cookies
“To be able to access user cookies while doing server-rendering, you can use plugToRequest or setRawCookie”.