python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
how to use useEffect and useContext with fetching data?
I'm trying to use React's Context API as well as Hooks with fetching data.
I'm coding [createContext] like below, but it doesn't work.
import { createContext, useEffect } from "react";
expo...
Yuzu
Votes: 0
Answers: 1
React createContext running mutation function not working correctly
I am having a problem i can't seem to understand why is happening since i have the same example working in codesandbox, but in my app it shows a different behavior. In my app i can see the context fro...

Holmar K
Votes: 0
Answers: 1
What are the right types for a useContext with TypeScript/ReactJS?
I am refactoring to TypeScript a tutorial in ReactJS that I am following. For the most part, the tutorial teaches you how to refactor most of the code as bonus material. However the log-in part is don...
SrAlch
Votes: 0
Answers: 2
Reactjs update context from children component
Starting with ReactJS and NextJS
I have the following Layout component and using context to set values from the children component
export interface AuthContextModel {
title: string;
descriptio...

Anuj TBE
Votes: 0
Answers: 1