• Packages
  • Themes
  • Documentation
  • Blog
  • Discuss
Sign in

react-tiny-snippets

Short snippets for React
  • #react
  • #snippets
  • #autocomplete
  • #completion
kamataryo
0.0.15 381
0
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

React Tiny Snippets for Atom

apm

Tiny Snippets of React for Atom editor.

This package autocompletes..

  • Life cycle method names and their declarations
  • static class property names and their declarations

example

// Typing `componentwillreceiveprops` leads...
// $1 is next your cursor position
 
/**
 * componentWillReceiveProps
 * @param  {object} nextProps React props.
 * @return {void}
 */
componentWillReceiveProps(nextProps) {
  $1
}

Installation

Run the following command:

$ apm install react-tiny-snippets

Alternatively go to Atom > Preferences > Packages and search for react-tiny-snippets.

Development

git clone git@github.com:kamataryo/react-tiny-snippets.git
cd react-tiny-snippets
npm install
npm run build

Contribution

Issues and PRs are welcome.

Release Note

0.0.9

  • Add getDerivedStateFromProps, getSnapshotBeforeUpdate, UNSAFE_componentWillMount, UNSAFE_componentWillUpdate and UNSAFE_componentWillReceiveProps.

0.0.5

  • Fix indent bug for propTypes and defaultProps
  • add componentDidCatch snippet for React v16

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by