const Context = React.createContext();
const arr = Array.from({length:3})
const Test =()=>{
return <>
arr.map((_,index)=>{
return <T1 key={index}>
})
</>
}
const T1 = ()=>{
const [num, setNum] = useState(1);
return <Context.Provider value={{num}}>
<OtherComponents />
</Context.Provider>
}
The dev tool only show the context once. I can not get other context values