taro-snippets README
Features
import Taro, { Component } from '@tarojs/taro';
import { View } from '@tarojs/components';
import { observer } from '@tarojs/mobx';
@observer
class componentName extends Component {
componentWillMount () { }
componentDidMount () { }
render () {
return (
<View className='componentName'>
</View>
);
}
}
export default componentName;
import { observable, action, computed } from 'mobx';
class storeName {
@observable someKey = '';
@computed
get someKey() {
return
}
@action
someKey() {
this.someKey = '';
}
}
export default storeName;
| |