Skip to content

Commit

Permalink
Fix #185
Browse files Browse the repository at this point in the history
  • Loading branch information
kirill-konshin committed Feb 25, 2020
1 parent 7e65440 commit 32eb92b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,13 +197,14 @@ export default connect(state => state)(Page);
```tsx
// pages/index.tsx
import { useSelector } from 'react-redux';
import { NextPage } from 'next';
import { RootState } from '../store';

interface Props {
custom: string;
}

const Page: Props = props => {
const Page: NextPage<Props> = props => {
const foo = useSelector<RootState, RootState['foo']>((state) => state.foo);

return (
Expand Down

0 comments on commit 32eb92b

Please sign in to comment.