Enable New JSX transform with React Native 0.66+

#React Native

whck6

最近把一些舊專案升級到 React 17 為了 New JSX Transform 這個東西,根據官方文件做完對應的修改後,專案會無法啟動。原因是在 React Native 專案中所使用的 bundler 有一些預設設定的緣故。

參考這篇

清掉 cache 並重新啟動

yarn watchman watch-del-all && yarn react-native start --reset-cache