taroSnippets
javascript&&typescript片段
taroPage
import React from 'react'
import { View } from '@tarojs/components'
import Taro from '@tarojs/taro'
import style from './index.module.scss'
const App = () => {
return (<View></View>)
}
export default App
taroComponent
import React from 'react'
import { View } from '@tarojs/components'
import Taro from '@tarojs/taro'
import style from './index.module.scss'
const App = () => {
return (<View></View>)
}
export default React.memo(App)
taroGlobalComponent
TaroNetworkImage
TaroStaticImage
scss
- 参考项目中的default.scss与mixins目录下所有文件
- 让default.scss所有自定义变量拥有提示,提示写法与原始写法保持一致
default.scss
color: $color-primary;
mixins
@flex
// 编译为
/*
@include flex($1, $2);
*/
| |