TsTaro
Typescript taro Snippets.
model
Trigger |
Content |
model |
taro model |
man |
model action normal |
mar |
model action request |
mat |
model action thunk |
component
Trigger |
Content |
fc |
function component |
rcc |
class component skeleton |
rccs |
class component with state skeleton |
rrc |
class component with redux and state skeleton |
rrcs |
class component with redux state skeleton |
hooks
Trigger |
Content |
ucb |
useCallback |
uctx |
useContext |
ud |
useDispatch |
ue |
useEffect |
uf |
useForm |
ur |
useRef |
us |
useState |
react
Trigger |
Content |
cw |
console.warn() |
ce |
console.error() |
cmd |
const mapDispatchToProps = (state: State) => {} |
cms |
const mapStateToProps = {} |
cp |
const { } = this.props |
cs |
const { } = this.state |
cv |
const { } = ; |
ss |
this.setState({ }) |
ssf |
this.setState((prevState) => {}) |
tomd |
typeof mapDispatchToProps |
toms |
typeof mapStateToProps |
tps |
type State = Readonly<{ }> |
| |