Typescript - re-using imported types to ensure syncing
Imagine you have a React component that has imported a type.
In this case it is an action type for interaction with Redux.
import myAction from '../actions'
import MyActionPayload from '.../types'
within our component where we define the const mapDis...
jaxtrax.hashnode.dev1 min read