DEV Community

Bret
Bret

Posted on

React vs Next (ContextProvider)

Can I copy over a ContextProvider from a react project and use it in my Nextjs project?

What’s the main difference?

Top comments (3)

Collapse
 
benjioe profile image
Benjioe

What's thé context ? You have 2 apps, one is React and the orher is Next ?

Collapse
 
yobretyo profile image
Bret

How different does ContextProvider work by, in Next vs React? I’m having a error of “not exported from” auth.js, when It is

Collapse
 
benjioe profile image
Benjioe

Can you put your code in a Codesandbox ?