apm install react-atom-snips
Name | Snippet |
---|---|
import React from 'react'; |
imr |
import React,{ Component } from 'react'; |
imrc |
Export default | ed |
function component | rfc |
class component | rcc |
createRef | createref |
createContext | createcontext |
Name | Snippet |
---|---|
useState hook | usestate |
useEffect hook | useeffect |
useCallback hook | usecallback |
useContext hook | usecontext |
useReducer hook | usereducer |
useMemo hook | usememo |
useRef hook | useref |
Name | Snippet |
---|---|
useFetch custom hook | usefetch |
useStore custom hook | usestore |
Name | Snippet |
---|---|
render() | rrdom |
createPortal() | rcp |
Name | Snippet |
---|---|
PropTypes | rproptypes |
Name | Snippet |
---|---|
elements | rcmap |
const numbers = [1, 2, 3, 4, 5];const listItems = numbers.map((number) => <li key={number}>{number}</li>);
git checkout -b my-new-branch
git commit -m 'Add some new features'
git push origin my-new-branch
Contributions are greatly appreciated. Please feel free..
MIT
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.