scrimba
Frontend Career Path
Advanced React
Reusability
createContext() & Context Provider
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

createContext() & Context Provider
AboutCommentsNotes
createContext() & Context Provider
Expand for more info
App.js
run
preview
console
import React from "react"
import Header from "./Header"
import Button from "./Button"

export default function App() {
return (
<div className="container dark-theme">
<Header />
<Button />
</div>
)
}
Console
/index.html
-5:42