Skip to content

madskristensen/ReactSnippetPack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ReactJS Snippet Pack for Visual Studio

Build status

A snippet pack to make you more productive working with React.js. Based on the snippets from the Atom React Plugin.

Download this extension from the VS Gallery or get the nightly build.

React Snippet Pack

Snippets include commonly used React specific boilerplate.

Snippet manager

The snippets match the ones found here: https://orktes.github.io/atom-react/#snippets-list

Here's the full list:

  • cdm - componentDidMount: fn() { ... }
  • cdm6 - ES6 version
  • cdup - componentDidUpdate: fn(pp, ps) { ... }
  • cwm - componentWillMount: fn() { ... }
  • cwm6 - ES6 version
  • cwr - componentWillReceiveProps: fn(np) { ... }
  • cwun - componentWillUnmount: fn() { ... }
  • cwun6 - ES6 version
  • cwu - componentWillUpdate: fn(np, ns) { ... }
  • cwu6 - ES6 version
  • cx - cx({ ... })
  • fup - forceUpdate(...)
  • gdp - getDefaultProps: fn() { return {...} }
  • gis - getInitialState: fn() { return {...} }
  • ism - isMounted()
  • pt - propTypes { ... }
  • pt6 - ES6 version
  • rcc - component skeleton
  • rcc6 - ES6 version
  • ren - render: fn() { return ... }
  • ren6 - ES6 version
  • sst - setState({ ... })
  • scu - shouldComponentUpdate: fn(np, ns) { ... }
  • scu6 - ES6 version
  • props - this.props.
  • props6 - ES6 version
  • state - this.state.
  • trp - transferPropsTo( ... )
  • rrc - render(component, container, [callback])

About

Snippet pack for Visual Studio

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published