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

Options

dispatch(setMaxLength(val)), 100)} /> dispatch(setWpm(val)), 50)} />
) }