scrimba
Challenge: Context Practice 1
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

Challenge: Context Practice 1
AboutCommentsNotes
Challenge: Context Practice 1
Expand for more info
index.js
run
preview
console
import React from "react"
import ReactDOM from "react-dom"

import App from "./App"

/**
* Challenge: Set up context to save the user's username and pass it to anywhere that is currently hardcoding "Username".
*
* Use the static class property `contextType` on any components that need to consume context.
*/

ReactDOM.render(<App />, document.getElementById("root"))
Console
/index.html
-5:29