Typescript React Snippets.
Trigger | Content |
---|---|
cmd |
const mapDispatchToProps = () => ({}) |
cms |
const mapStateToProps = () => ({}) |
cp |
const { } = this.props |
cs |
const { } = this.state |
cv |
const { } = ; |
fc |
function component |
frc |
function component with react-redux |
icss |
import styles from './*.scss' |
man |
model action normal |
mar |
model action request |
model |
model |
rcc |
class component skeleton |
rccs |
class component with state skeleton |
rnmodel |
react native model |
rrc |
class component with react-redux and state skeleton |
rrcs |
class component with react-redux state skeleton |
ss |
this.setState({ }) |
ssf |
this.setState((prevState) => {}) |
taromodel |
taro model |
tomd |
typeof mapDispatchToProps |
toms |
typeof mapStateToProps |
tps |
type State = Readonly<{ }> |
ucb |
useCallback |
uctx |
useContext |
ue |
useEffect |
uf |
useForm |
ur |
useRef |
us |
useState |