Comments (6)
组件分的这么细,之间的通信怎么解决呢?
from weekly.
请问,https://github.com/dt-fe/weekly/blob/master/34.%E7%B2%BE%E8%AF%BB%E3%80%8AReact%20%E4%BB%A3%E7%A0%81%E6%95%B4%E6%B4%81%E4%B9%8B%E9%81%93%E3%80%8B.md
这一期最后部分有一行代码:
onChange(value => console.log(value!.name))
这个value!.name是什么写法啊,有相关的语法介绍或文档吗?或者是笔误?
@ascoders
from weekly.
是 ts 的语法,另外也有一套 stage1 提案:proposal-optional-chaining。
目前来看语法不太一样,分别是 !.
与 ?.
。
from weekly.
@nicewahson 通过很多数据流框架的依赖注入可以解决。
from weekly.
看场景,我觉得大部分场景分这么细都是给自己找罪受或者给接盘的人找罪受,当然如果你恰好遇到那一小部分特殊场景,组件细分肯定是有好处的
from weekly.
看场景,我觉得大部分场景分这么细都是给自己找罪受或者给接盘的人找罪受,当然如果你恰好遇到那一小部分特殊场景,组件细分肯定是有好处的
@liutian 这篇文章是 2017 年的,不要用现在的视角看。站在现在的视角,我同意你说的,除非遇到场景,否则没必要。
from weekly.
Related Issues (20)
- 可视化搭建 - 场景实战
- 加班中,请假一次 HOT 1
- 【自荐开源】AI可视化SolidUI HOT 2
- 精读《自由 + 磁贴混合布局》
- 请假一次 🏳️
- 精读《自由布局吸附线的实现》
- 请假一次 HOT 1
- 精读《算法题 - 通配符匹配》
- 这里我想是对应的 '*' 不匹配任何字符? HOT 1
- 精读《算法题 - 统计可以被 K 整除的下标对数目》
- 精读《算法题 - 最小覆盖子串》
- 请假一次
- 精读《算法题 - 地下城游戏》
- 请假一次 HOT 6
- 精读《VisActor 数据可视化工具》
- 精读《算法题 - 编辑距离》
- 请假一次
- 精读《算法题 - 二叉树中的最大路径和》
- 休刊一段时间 HOT 8
- 真的牛逼,竟然检测有病毒
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 weekly.