79252481

Date: 2024-12-04 19:26:33
Score: 2.5
Natty:
Report link

If you are not providing any value in the like this <CartProvider value={defaultValue}, then it will take the value which was initially set i.e. const CartContext = createContext(null). Also it works even if you're using React Router. Hope this answers your query.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Soumyanil