Skip to content

Instantly share code, notes, and snippets.

@aheitzmann
aheitzmann / my-connected-component.tsx
Last active September 30, 2021 06:14
A best practice pattern for defining and using typescript types for a redux-react connected component
import * as React from 'react'
import * as Redux from 'redux'
import { MyReduxState } from './my-root-reducer.ts'
export interface OwnProps {
propFromParent: number
}
interface StateProps {