-
Vite is very fast. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
I found a great example in youtube: |
Beta Was this translation helpful? Give feedback.
-
I found a way:
|
Beta Was this translation helpful? Give feedback.
-
I have created a Vite plugin that hopefully covers most cases: |
Beta Was this translation helpful? Give feedback.
I found a way:
npx react-native init demo
cd demo
metro.config.js
->module.exports = {}
This is to compatibility with JSX files.
Maybe you need to reinstall the APP will take effect.
yarn create vite web --template react
cd web && yarn
vite.config.js
->export default defineConfig({})
mkdir share && touch share/test.jsx
Add following code in
share/test.jsx