babel-sublime-snippets icon indicating copy to clipboard operation
babel-sublime-snippets copied to clipboard

Next generation JavaScript and React snippets for Sublime

Results 20 babel-sublime-snippets issues
Sort by recently updated
recently updated
newest added

It's been a while since the last commit, are you guys looking for maintainers?

Snippets will only work if your cursor is above the propTypes definition in a jsx file. Apparently the propTypes syntax breaks the scope for the snippet parser, my guess is...

I cannot seem to get any snippets to work on my machine. I hit `rcc` + tab and just get a tab. Nothing happens. Am I missing something here?

Add redux connected class component

Update component did update with `snapshot ` parameter

Added `getSnapshotBeforeUpdate(prevProps, prevState) {…}` and `getDerivedStateFromProps(props, state) {…}`

Add function class component skeleton and use `rfc` trigger

Since `componentWillMount()` `componentWillUpdate() ` and `componentWillReceiveProps` are now considered legacy in React v.16.6.0, they should be renamed to `UNSAFE_componentWillMount()` `UNSAFE_componentWillUpdate() ` and `UNSAFE_componentWillReceiveProps`.

I want to change the rcc -> to my own convention, how would I do that?

There are new life-cycle methods in React. like `getDerivedStateFromProps()`, `getSnapshotBeforeUpdate`, `componentDidCatch`, `componentDidUpdate` with 3 params, so on Will you add them to list of snippets?