Nice repo!
Does importing type from parent not cause a circular dependency?
|
import { IState as Props } from "../App"; |
|
|
|
interface IProps { |
|
people: Props["people"] |
|
} |
I've not seen this way of passing props before, is it based on any documentation? I could not find any references in the repository or description about it. I'd love to learn :)
Nice repo!
Does importing type from parent not cause a circular dependency?
React-With-TypeScript-Crash-Course/src/components/List.tsx
Lines 2 to 6 in 2566740
I've not seen this way of passing props before, is it based on any documentation? I could not find any references in the repository or description about it. I'd love to learn :)