[按此打開]
[隱藏]
話說
汪汪以前一直寫開ios
而家寫react native寫到上晒癮
佢components 嘅render method同state分拆開黎
甚至有個pure component 嘅物體都十分不錯
基本上可以好好咁把stateless code同state兩部分分得清清楚楚
只係問題係太多bugs
基本上RN由上至下,左至右,前到後,裡到外都係bugs
又例如有個最近發現嘅bug
個PureComponent佢documents 話明係shadow compare props同state兩個variable
但事實上就算props有個bool value change,都未必會更新畫面
Ios 個swiftui汪汪仲未玩過
係諗住等多兩年先再玩,因為swiftui個FileDocument 都係上年先推出
呢個汪汪寫apps係有需要用到,等多兩年淘汰左舊版ios先再玩swiftui
[ 本帖最後由 Susan﹏汪汪 於 2021-1-5 09:37 PM 編輯 ]