DefectingCat's recent timeline updates
DefectingCat

DefectingCat

V2EX member #226746, joined on 2017-04-19 13:30:09 +08:00
Per DefectingCat's settings, the topics list is only visible after you sign in
Deals info, including closed deals, is not hidden
DefectingCat's recent replies
jsx 是有所抛弃的。vue svelte 的模版语法都会有个编译阶段,而 jsx 只有 babel 转了下写法而已。实际上的函数式组件真的是纯粹的函数。

函数传参时写不了表达式,就和在 jsx 中用不了 for 循环一个道理。

babel:
https://babeljs.io/repl#?browsers=defaults%2C%20not%20ie%2011%2C%20not%20ie_mob%2011&build=&builtIns=false&corejs=3.21&spec=false&loose=false&code_lz=MYewdgzgLgBAwiAtgB3AUzLAvDAFAShiwD4YBvAKBhgCc0oBXGsGAHmLNDABMBLKXuBgB-NnwBuxVgHoJpAFxjekmXIC-M4gG4KanUA&debug=false&forceAllTransforms=false&modules=false&shippedProposals=false&evaluate=false&fileSize=true&timeTravel=false&sourceType=module&lineWrap=true&presets=env%2Creact%2Cstage-3%2Ctypescript&prettier=false&targets=&version=7.26.4&externalPlugins=&assumptions=%7B%7D

有人说 vue 模版有黑魔法,同理在 vue 中用了 jsx 也就享受不到提前编译带来的优化了。本质上就是个选择题,和选择是用 vue 还是用 react 是一个道理。

争这个不如多看看 js 基础原理
Jan 30, 2019
Replied to a topic by suiyanhehao Apple QQ 福袋信息关闭方法
可以,很棒。感谢
Jan 2, 2019
Replied to a topic by eagerwu iPad 苹果会普遍采用 type-c 接口吗?
虽然现在 lightning 也有蛮多的转接线啥的,但我个人也觉得 type c 可能更方便一点,毕竟其他设备都普遍 type c 了,带一根线肯定更方便。苹果不是还有个啥 MFI 认证的么,估计暂时还能在第三方线那捞一笔吧_(:3 」∠❀)_
个人观点(逃…
Dec 26, 2018
Replied to a topic by lostspirit0 macOS 现在还有 setapp 车队吗
@xz410236056 这个很棒,稳
iPhone X 国行 12.1.2 也是正常的,楼主恢复一下试试吧,可能是个别小问题
Dec 7, 2018
Replied to a topic by Maogai 音乐 有什么好听的歌儿推荐?
可以尝试换换口味呗
比如试试其他语言,其他风格的💽
@Artists 你这个问题角度很刁钻
Nov 6, 2017
Replied to a topic by Tunar 天黑以后 20171106 午夜俱乐部
找不到工作的感觉真好
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5597 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 21ms · UTC 03:43 · PVG 11:43 · LAX 20:43 · JFK 23:43
♥ Do have faith in what you're doing.