import React, { FC } from 'react' import { useDispatch } from '../index.js' interface IncAction { type: 'INC' } export const Counter: FC<{ value: number }> = ({ value }) => { let dispatch = useDispatch() return (
{value}
) }