import React, { useCallback } 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 (
dispatch(setMaxLength(val)), 100, true), [dispatch] )} /> dispatch(setWpm(val)), 50)} />
) }