React Context API – why do we pass a defaut value to React.createContext()? I was refreshing on React’s Context Api today. It works like: You create a Context: export const TestContext = React.createContext(defaultValue) You add a provider: <TestContext.Provider value={whenever: “whatever”} /> You grab the value passed via Context in whatever nested Component: const value =…

Read More