import React from 'react' import { useAppSelector, useAppDispatch } from '../../app/hooks' import { ordered, restocked } from './icecreamSlice' export const IcecreamView = () => { const [value, setValue] = React.useState(1) const numOfIcecreams = useAppSelector(state => state.icecream.numOfIcecreams) const dispatch = useAppDispatch() return (

Number of ice creams - {numOfIcecreams}

setValue(parseInt(e.target.value))} />
) }