ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

React and React Router Snippets

by joemaddalone ST2/ST3

Joe Maddalone's React Snippets

Details

Installs

  • Total 8K
  • Win 4K
  • OS X 3K
  • Linux 1K
Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25 Oct 24 Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28
Windows 0 2 1 4 1 0 1 2 2 1 1 1 0 2 2 0 1 1 2 1 1 1 3 0 1 2 1 4 2 0 2 1 3 3 0 2 1 1 2 3 2 2 2 2 1 0
OS X 1 0 1 1 1 0 0 1 0 0 1 0 3 1 0 1 0 1 1 0 1 1 0 0 0 1 1 0 1 0 2 0 1 1 0 0 0 0 0 0 1 0 0 0 0 1
Linux 0 0 0 0 2 0 0 1 1 0 0 0 1 0 2 0 0 0 1 0 0 0 2 0 1 0 1 0 0 0 1 1 0 1 1 0 0 0 0 0 1 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

React Snippets

React

Trigger Description
pt propTypes
rp React.PropTypes
rpa React.PropTypes.array
rpao React.PropTypes.arrayOf
rpb React.PropTypes.boolean
rpe React.PropTypes.element
rpf React.PropTypes.func
rpi React.PropTypes.instanceOf
rpn React.PropTypes.number
rpot React.PropTypes.oneOfType
rpo React.PropTypes.oneOf
rpobj React.PropTypes.object
rpsh React.PropTypes.shape
6rec ES6 React.Component class
rps React.PropTypes.string
rec React createClass template
mix React mixins
6cd ES6 React componentDidMount
6cw ES6 React componentWillMount
6cwu React componentWillUnmount
cd React componentDidMount
cw React componentWillMount
cwu React componentWillUnmount
6cwr ES6 React componentWillReceiveProps
6cdu ES6 React componentDidUpdate
6scu ES6 React shouldComponentUpdate
6cwup ES6 React componentWillUpdate
cwr React componentWillReceiveProps
cdu React componentDidUpdate
cwup React componentWillUpdate
scu React shouldComponentUpdate
ctt React ChildContextTypes
cty React contextTypes
gc React getChildContext
onbl onBlur
onch onChange
oncl onClick
oncm onContextMenu
onco onCopy
onct onCut
ondc onDoubleClick
onde onDragEnd
onden onDragEnter
ondex onDragExit
ondl onDragLeave
ondo onDragOver
onds onDragStart
onfo onFocus
ondr onDrop
onin onInput
onkd onKeyDown
onkp onKeyPress
onku onKeyUp
onmd onMouseDown
onme onMouseEnter
onmm onMouseMove
onml onMouseLeave
onmo onMouseOut
onmov onMouseOver
onmu onMouseUp
onpa onPaste
onsc onScroll
onsu onSubmit
ontc onTouchCancel
onte onTouchEnd
ontm onTouchMove
onts onTouchStart
rwc React withContext
onwh onWheel
rc React.createElement()
rcf React.createFactory()
gd React getDefaultProps
gi React getInitialState
ss React this.setState
imr import react
sp React this.setProps
thisc React this.context
thisp React this.props
thisr React this.refs
thiss React this.state

React.DOM

Trigger Description
Ra React.DOM.a
Rabbr React.DOM.abbr
Raddress React.DOM.address
Rarea React.DOM.area
Rarticle React.DOM.article
Raside React.DOM.aside
Raudio React.DOM.audio
Rb React.DOM.b
Rbase React.DOM.base
Rbdi React.DOM.bdi
Rbdo React.DOM.bdo
Rbig React.DOM.big
Rblockquote React.DOM.blockquote
Rbody React.DOM.body
Rbr React.DOM.br
Rbutton React.DOM.button
Rcanvas React.DOM.canvas
Rcaption React.DOM.caption
Rcircle React.DOM.circle
Rcite React.DOM.cite
Rcode React.DOM.code
Rcol React.DOM.col
Rcolgroup React.DOM.colgroup
Rdata React.DOM.data
Rdatalist React.DOM.datalist
Rdd React.DOM.dd
Rdefs React.DOM.defs
Rdel React.DOM.del
Rdetails React.DOM.details
Rdfn React.DOM.dfn
Rdiv React.DOM.div
Rdl React.DOM.dl
Rdt React.DOM.dt
Rem React.DOM.em
Rembed React.DOM.embed
Rfieldset React.DOM.fieldset
Rfigcaption React.DOM.figcaption
Rfigure React.DOM.figure
Rfooter React.DOM.footer
Rform React.DOM.form
Rg React.DOM.g
Rh1 React.DOM.h1
Rh2 React.DOM.h2
Rh3 React.DOM.h3
Rh4 React.DOM.h4
Rh5 React.DOM.h5
Rh6 React.DOM.h6
Rhead React.DOM.head
Rheader React.DOM.header
Rhr React.DOM.hr
Rhtml React.DOM.html
Ri React.DOM.i
Riframe React.DOM.iframe
Rimg React.DOM.img
Rinput React.DOM.input
Rins React.DOM.ins
Rkbd React.DOM.kbd
Rkeygen React.DOM.keygen
Rlabel React.DOM.label
Rlegend React.DOM.legend
Rli React.DOM.li
Rline React.DOM.line
RlinearGradient React.DOM.linearGradient
Rlink React.DOM.link
Rmain React.DOM.main
Rmap React.DOM.map
Rmark React.DOM.mark
Rmenu React.DOM.menu
Rmenuitem React.DOM.menuitem
Rmeta React.DOM.meta
Rmeter React.DOM.meter
Rnav React.DOM.nav
Rnoscript React.DOM.noscript
Robject React.DOM.object
Rol React.DOM.ol
Roptgroup React.DOM.optgroup
Roption React.DOM.option
Routput React.DOM.output
Rp React.DOM.p
Rparam React.DOM.param
Rpath React.DOM.path
Rpolygon React.DOM.polygon
Rpolyline React.DOM.polyline
Rpre React.DOM.pre
Rprogress React.DOM.progress
Rq React.DOM.q
RradialGradient React.DOM.radialGradient
Rrect React.DOM.rect
Rrp React.DOM.rp
Rrt React.DOM.rt
Rruby React.DOM.ruby
Rs React.DOM.s
Rsamp React.DOM.samp
Rscript React.DOM.script
Rsection React.DOM.section
Rselect React.DOM.select
Rsmall React.DOM.small
Rsource React.DOM.source
Rspan React.DOM.span
Rstop React.DOM.stop
Rstrong React.DOM.strong
Rstyle React.DOM.style
Rsub React.DOM.sub
Rsummary React.DOM.summary
Rsup React.DOM.sup
Rsvg React.DOM.svg
Rtable React.DOM.table
Rtbody React.DOM.tbody
Rtd React.DOM.td
Rtext React.DOM.text
Rtextarea React.DOM.textarea
Rtfoot React.DOM.tfoot
Rth React.DOM.th
Rthead React.DOM.thead
Rtime React.DOM.time
Rtitle React.DOM.title
Rtr React.DOM.tr
Rtrack React.DOM.track
Ru React.DOM.u
Rul React.DOM.ul
Rvideo React.DOM.video
Rwbr React.DOM.wbr

ReactDOM

Trigger Description
fdn React.findDOMNode
unm ReactDOM unmountComponent at node
rdr react-dom render
imrd import react-dom

React.addons

Trigger Description
imrlsm import LinkedStateMixin
imrp import Perf
imrpr import PureRenderMixin
imrcst import ReactCSSTransitionGroup
imrtu import ReactTestUtils
imrtg import ReactTransitionGroup
imrcf import createFragment
imrcl import cloneWithProps
imrsc import shallowCompare
imru import update

ReactDOMServer

Trigger Description
rtsm ReactDOMServer.renderToStaticMarkup
rts ReactDOMServer.renderToString

React-Router

Trigger Description
link react-router Link
iroute Router.IndexRoute
ilink Router.IndexLink
redirect react-router Redirect
imrr import react-router
route Router.Route
router Router.Route