Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>TSReactNew to Visual Studio Code? Get it now.

TSReact

bluewaitor

|
105 installs
| (0) | Free
typescript react snippets
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

TSReact

Typescript React Snippets.

Trigger Content
cmd const mapDispatchToProps = () => ({})
cms const mapStateToProps = () => ({})
cp const { } = this.props
cs const { } = this.state
cv const { } = ;
fc function component
frc function component with react-redux
icss import styles from './*.scss'
man model action normal
mar model action request
model model
rcc class component skeleton
rccs class component with state skeleton
rnmodel react native model
rrc class component with react-redux and state skeleton
rrcs class component with react-redux state skeleton
ss this.setState({ })
ssf this.setState((prevState) => {})
taromodel taro model
tomd typeof mapDispatchToProps
toms typeof mapStateToProps
tps type State = Readonly<{ }>
ucb useCallback
uctx useContext
ue useEffect
uf useForm
ur useRef
us useState

Links

  • azure
  • publish api
  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2019 Microsoft