Taro Advanced
阅读原文时间:2023年07月08日阅读:1

Taro Advanced

https://nervjs.github.io/taro/docs/hybrid.html

https://github.com/NervJS/taro-sample-weapp

https://github.com/NervJS/taro-sample-weapp/blob/master/src/pages/native/native.js

https://github.com/NervJS/taro-sample-weapp/blob/master/src/pages/echarts/echarts.js

https://nervjs.github.io/taro/docs/mini-third-party.html

https://nervjs.github.io/taro/docs/ui-lib.html

https://github.com/NervJS/taro-ui-sample

https://nervjs.github.io/taro/docs/template.html

https://github.com/NervJS/taro-project-templates

redux

https://github.com/NervJS/taro-project-templates/blob/master/redux/src/store/index.js

https://doc.aldwx.com/mini-program


https://nervjs.github.io/taro/docs/redux.html

https://github.com/NervJS/taro-redux-sample

https://react-redux.js.org/api/hooks#using-memoizing-selectors

# yarn
$ yarn add redux @tarojs/redux @tarojs/redux-h5 redux-thunk redux-logger

#  npm
$ npm i -S redux @tarojs/redux @tarojs/redux-h5 redux-thunk redux-logger

https://nervjs.github.io/taro/docs/css-modules.html

https://github.com/css-modules/css-modules

推荐使用自定义转换模式

// 组件样式

.test {
  color: red;
  .txt {
    font-size: 36px;
  }
}



// 组件 JS 中使用样式

import Taro, { Component } from '@tarojs/taro'
import { View, Text } from '@tarojs/components'

import styles from './Test.module.scss'

export default class Test extends Component {
  constructor(props) {
    super(props)
    this.state = { }
  }

  render () {
    return (
      <View className={styles.test}>
        <Text className={styles.txt}>Hello world!</Text>
      </View>
    )
  }
}

手机扫一扫

移动阅读更方便

阿里云服务器
腾讯云服务器
七牛云服务器

你可能感兴趣的文章