Skip to content

HXLabsMX/atom-herxlabs-react-snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

atom-herxlabs-react-snippets

apm apm

A useful collection of React and React-Native snippets in ES6 for Atom

Install

Using apm:

apm install atom-herxlabs-react-snippets

Or search for atom-herxlabs-react-snippets in Atom settings view.

Available snippets 🚀

To Start

Prefix Snippet
xInit App Base
xInitc Component Base

Lifecycle

Prefix Snippet
xConstructor constructor()
xCWM componentWillMount()
xCDM componentDidMount()
xCWRP componentWillReceiveProps()
xSCU shouldComponentUpdate()
xCWU componentWillUpdate()
xCDU componentDidUpdate()
xCWUM componentWillUnMount()

State and props

Prefix Snippet
xsetState Create a setState() arrow function
xState this.state.
xdefaultProps To set default props to a component
xProps this.props.

Styles

Prefix Snippet
xStyleSheet Create an StyleSheet
xStyle Create an Style
xStyleAsign Asign an Style

Misc

Prefix Snippet
xFirebase Create Firebase imports and config

License

This work is licensed under the The MIT License.

Donate

You are welcome support this project via Paypal.

About

A useful collection of React snippets in ES6 for Atom

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published