DEPRECATED! This hasn't been state of the art for some years now. Use functional components and hooks instead.
Opinionated snippets with best practices we use at Sandstorm.
This extension complements our Kickstart guide for React-Redux-Apps written in TypeScript. We highly recommend to check it out!
Below is a list of all available snippets and the triggers of each one. The →
means the TAB
key.
Trigger | Content |
---|---|
component→ |
Type safe PureComponent |
story→ |
Type safe story for Storybook |
test→ |
Type safe component test |
container→ |
Type safe container component |
store→ |
Type safe Redux store |
Look, ma! Intellisense!
These snippets expect the usual package to be installed (e.g. react
, redux
, ect.).
One of them is @sandstormmedia/react-redux-ts-utils
wich is a little library that provides some useful types and utilities (available on npm). You can of course change the relevant code.
These snippets may only make sense if used in the opinionated dev environment described in our Kickstart guide.
MIT