python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
React Context value gets updated, but component doesn't re-render
This Codesandbox only has mobile styles as of now
I currently have a list of items being rendered based on their status.
Goal: When the user clicks on a nav button inside the modal, it updates the sta...
Nunchuk
Votes: 0
Answers: 1
How to prevent my parent React component to re-render and to re-initialize my context?
I would like to use useContext to store a user. Unfortunately, my parent React component App re-renders everytime I change "pages". Specifically, when I am on page "/login" and I c...
bassman21
Votes: 0
Answers: 0
undefined for useContext in reactjs multilevel components
in my src, I have State.js for create-context as follow
State.js
I**'m using react js current version and using public and private route**
import React, { createContext, useReducer } from "re...

khan Armaan
Votes: 0
Answers: 0
react native moving data with useContext
this is a code from a tutorial about moving data with context the thing is the instructor is using 4.x navigator and since 4.x is not supported I tried to modify the navigation, but when I wrap the na...
mohammed refat
Votes: 0
Answers: 2