Skip to content

krishnr/react-component-snippet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 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
  • Search for: Package Control: Add Repository
  • Add the link to this repo: https://github.com/krishnr/react-component-snippet
  • Now install the snippet: shift + cmd + P To launch Package Control again.
  • Start typing: Package Control: Install Package
  • Search for react-component-snippet
  • Done! Test it out by typing React.cc→

About

A Sublime snippet for neat & clean React components.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors