Comments (4)
有几个问题:
-
defaultFollowTags['post']
和prefixcls
不知道是从哪里来的,要么把他们放在state
,要么放在render()
。 -
activeItem
从来没有变过,你应该把他作为常量放在render
里。 -
key
使用index
是一种反优化。
后面两个不影响,但做到了性能会好点,代码也更好维护。
from taro.
@yuche 首先,第一个问题是我全局定义的变量 ,如下:
import defaultFollowTags from '../defaultTags';
import './index.scss';
const prefixcls = 'post';
后面2个问题也不会导致截图所出现问题啊
from taro.
所以我说不影响嘛~
JSX 引用顶级作用域的变量这个确实还没有,晚些时候发个新版本支持吧。
from taro.
d559125
修复了这个问题
from taro.
Related Issues (20)
- 项目周报 (2024 年 4 月 27 日 - 2024 年 5 月 4 日)
- 项目周报 (2024 年 4 月 27 日 - 2024 年 5 月 4 日)
- 项目周报 (2024 年 4 月 27 日 - 2024 年 5 月 4 日)
- 项目周报 (2024 年 4 月 27 日 - 2024 年 5 月 4 日)
- 项目周报 (2024 年 4 月 27 日 - 2024 年 5 月 4 日)
- 项目周报 (2024 年 4 月 27 日 - 2024 年 5 月 4 日)
- 项目周报 (2024 年 4 月 27 日 - 2024 年 5 月 4 日)
- [email protected]安装并初始化项目后,再安装Taro 3.3.0 无法install,跟taro-cli初始化的依赖包冲突 HOT 1
- 项目周报 (2024 年 4 月 27 日 - 2024 年 5 月 4 日)
- 项目周报 (2024 年 4 月 27 日 - 2024 年 5 月 4 日)
- 项目周报 (2024 年 4 月 27 日 - 2024 年 5 月 4 日)
- 项目周报 (2024 年 4 月 27 日 - 2024 年 5 月 4 日)
- 项目周报 (2024 年 4 月 27 日 - 2024 年 5 月 4 日)
- 项目周报 (2024 年 4 月 27 日 - 2024 年 5 月 4 日)
- 项目周报 (2024 年 4 月 27 日 - 2024 年 5 月 4 日)
- 项目周报 (2024 年 4 月 27 日 - 2024 年 5 月 4 日)
- 使用taro init新建taro-ui模板的项目时有依赖问题 HOT 1
- InlinePaymentPanel 组件无法传入extInfos HOT 1
- 返回上一个页面瞬间白屏
- 返回上一个页面瞬间白屏
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from taro.