mirror of
https://github.com/genemecija/learn-morse-code.git
synced 2026-04-21 06:03:56 +00:00
Resolved WPM change/telegraph timing bug
This commit is contained in:
parent
4b4030a88d
commit
f6384b30ef
11 changed files with 120 additions and 317 deletions
|
|
@ -1,11 +1,15 @@
|
|||
import React, {useState} from "react"
|
||||
|
||||
const WPMContext = React.createContext()
|
||||
|
||||
function WPMContextProvider(props) {
|
||||
|
||||
const [wpm, setWPM] = useState(15)
|
||||
|
||||
return (
|
||||
<WPMContext.Provider value={{wpm: wpm, setWPM: setWPM}}>
|
||||
<WPMContext.Provider value={{
|
||||
wpm: wpm,
|
||||
setWPM: setWPM}}>
|
||||
{props.children}
|
||||
</WPMContext.Provider>
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue