mirror of
https://github.com/zhigang1992/mobx-fast-refresh.git
synced 2026-01-12 16:32:54 +08:00
feat: add use-mobx-observable
This commit is contained in:
@@ -11,7 +11,8 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"react": "^18.3.1",
|
||||
"react-dom": "^18.3.1"
|
||||
"react-dom": "^18.3.1",
|
||||
"use-mobx-observable": "1.1.0-beta.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^9.8.0",
|
||||
|
||||
1801
pnpm-lock.yaml
generated
Normal file
1801
pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -16,7 +16,7 @@ function App() {
|
||||
<img src={reactLogo} className="logo react" alt="React logo" />
|
||||
</a>
|
||||
</div>
|
||||
<h1>Vite + React</h1>
|
||||
<h1>React</h1>
|
||||
<div className="card">
|
||||
<button onClick={() => setCount((count) => count + 1)}>
|
||||
count is {count}
|
||||
|
||||
@@ -3,5 +3,7 @@ import react from '@vitejs/plugin-react-swc'
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
plugins: [react({
|
||||
jsxImportSource: "use-mobx-observable"
|
||||
})],
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user