Nice one! I read briefly, I’ll back to do it thoroughly later.
Reposted from
Jacob Paris
You only need a little bit of TypeScript knowledge to be dangerous with React
- Type your inputs, infer your outputs
- Use React.ComponentProps everywhere
- Use Omit<> when overriding props
- Don't pass types from the DB into your components
www.jacobparis.com/content/reac...
- Type your inputs, infer your outputs
- Use React.ComponentProps everywhere
- Use Omit<> when overriding props
- Don't pass types from the DB into your components
www.jacobparis.com/content/reac...
Comments