Snippet pack for Visual Studio
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
art
src
.gitattributes
.gitignore
LICENSE
README.md
ReactSnippetPack.sln
appveyor.yml

README.md

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: http://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])