scrimba
React Bootcamp Course
contextType
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

contextType
AboutCommentsNotes
contextType
Expand for more info
index.js
run
preview
console
import React from "react"
import ReactDOM from "react-dom"

import App from "./App"
const ThemeContext = React.createContext()

ReactDOM.render(
<ThemeContext.Provider value={"light"}>
<App />
</ThemeContext.Provider>,
document.getElementById("root")
)
Console
/index.html
-7:00