Skip to content

Commit 2ad375c

Browse files
Suhas R Morepayapula
authored andcommitted
removed unused prop (epicweb-dev#68)
1 parent 15104ba commit 2ad375c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/exercise/03.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
import * as React from 'react'
55
import {Switch} from '../switch'
66

7-
const ToggleContext = React.createContext()
8-
ToggleContext.displayName = 'ToggleProvider'
7+
// 🐨 create your ToggleContext context here
8+
// 📜 https://reactjs.org/docs/context.html#reactcreatecontext
9+
910
function Toggle({children}) {
1011
const [on, setOn] = React.useState(false)
1112
const toggle = () => setOn(!on)

0 commit comments

Comments
 (0)