import React from 'react' // Redux import { useDispatch, useSelector } from 'react-redux' import { actionCreators as counterActionCreators, CounterState } from '../store/reducers/Counter' interface IReduxState { counter: CounterState } const Counter = () => { const dispatch = useDispatch() const counterState = useSelector((state: IReduxState) => state.counter) const increment = () => { // dispatch(counterActionCreators.increment()) } return <>
This is a simple example of a React component.
Current count: {counterState.count}
> } export { Counter }