4IT580: Docs
4IT580 WebGithub

7th Practical Class:
Context, More Hooks, Debugging, and GraphQL Fragments

React Context

Props Drilling

React Context and useContext Hook

Nested Context Providers

useContext Without Context Provider

Create Context:


Provide Context Value:


Get Context Value:


Who is Using Context?


👌 Please read: How to use React Context effectively 👌

Some More Hooks

useMemo, useCallback

Whithout Memoization:

With Memoization:

Custom Hooks

useRef

useReducer

Debugging

GraphQL Fragments

Fragments with Apollo Client

organisms/QuackList.js

pages/HomePage.js: