web-snippets
snippets
React
function component
import react from 'react';
export default (props) => {
}
redux connect
import { connect } from 'react-redux'
Taro
className=""
export default {
namespace: '${1:namespace}',
state: {},
reducers: {
save(state, { payload }) {
}
},
effects: {
* ${2:effect} ({ payload }, { put, call }) {
}
}
};
Eslint
- eslint-disable
disable file
/* eslint-disable */
- eslint-disable-line
disable current line
// eslint-disable-line
Remax
import { View } from 'remax';
import react from 'react';
import { View } from 'remax'
export default (props) => {
}
remax page class
import React, { Compoent } from 'react';
import { View } from 'remax';
export default class Index extends Component {
render() {
}
}
| |