import React from 'react' import { useSelector, useDispatch } from 'react-redux' import { setMaxLength, setWpm } from '../store/actions' export const Options = () => { const dispatch = useDispatch() const maxLength = useSelector(state => state.maxLength) const wpm = useSelector(state => state.wpm) return (
dispatch(setMaxLength(e.target.value))} /> {maxLength} dispatch(setWpm(e.target.value))} /> {wpm}
) }