feat: add use-mobx-observable

This commit is contained in:
Kyle Fang
2024-08-15 10:07:25 +08:00
parent 046916a4af
commit 5d14a80861
4 changed files with 1807 additions and 3 deletions

View File

@@ -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

File diff suppressed because it is too large Load Diff

View File

@@ -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}

View File

@@ -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"
})],
})