Skip to content

A Sublime snippet for neat & clean React components.

Notifications You must be signed in to change notification settings

pumpupapp/react-component-snippet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

react-component-snippet

A template for neat & clean React components.

Type React.cc→ followed by a tab to generate this beauty:

React.createClass({


  ////////////////////
  // PROPS & STATES //
  ////////////////////


  propTypes : {

  },

  getDefaultProps() {
    return {

    }
  },

  getInitialState() {
    return {

    }
  },




  ////////////////
  // RENDERINGS //
  ////////////////


  render() {
    return (
      <div>

      </div>
    )
  },




  /////////////////////
  // LIFECYCLE HOOKS //
  /////////////////////






  ////////////////////
  // EVENT HANDLERS //
  ////////////////////






  /////////////
  // GETTERS //
  /////////////






  /////////////
  // SETTERS //
  /////////////






  //////////////////////
  // DOM MANIPULATORS //
  //////////////////////






  ////////////////////
  // HELPER METHODS //
  ////////////////////




})

Instructions

  1. Open Package Control inside of Sublime Text using shift + cmd + P

About

A Sublime snippet for neat & clean React components.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published