Skip to content

Commit 778dc00

Browse files
committed
docs: update and add new examples
1 parent 65314a1 commit 778dc00

File tree

77 files changed

+4602
-31
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+4602
-31
lines changed

examples/benchmark-nanoviews/src/app.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* eslint-disable */
22
import {
33
signal,
4-
update,
54
record,
65
deleteIndex,
76
updateList,
@@ -106,7 +105,7 @@ export function App(ref = {}) {
106105
const $data = signal([])
107106
const $selected = signal()
108107
const add = () => {
109-
update($data, data => [...data, ...buildData(1000)])
108+
$data(data => [...data, ...buildData(1000)])
110109
}
111110
const clear = () => {
112111
clearList($data)
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import bundlerConfig from '@trigen/eslint-config/bundler'
2+
import tsConfig from '@trigen/eslint-config/typescript'
3+
import env from '@trigen/eslint-config/env'
4+
import rootConfig from '../../eslint.config.js'
5+
6+
export default [
7+
...rootConfig,
8+
...bundlerConfig,
9+
...tsConfig,
10+
env.node,
11+
{
12+
languageOptions: {
13+
parserOptions: {
14+
projectService: true,
15+
tsconfigRootDir: import.meta.dirname
16+
}
17+
},
18+
rules: {
19+
'import/no-default-export': 'off',
20+
'import/no-anonymous-default-export': 'off'
21+
}
22+
}
23+
]
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Rick And Morty Browser</title>
7+
<script type="module" src="/src/main.tsx"></script>
8+
</head>
9+
<body>
10+
<div id="app"></div>
11+
</body>
12+
</html>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"name": "rick-and-morty-react",
3+
"private": true,
4+
"version": "0.0.0",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "vite",
8+
"build": "tsc && vite build",
9+
"preview": "vite preview"
10+
},
11+
"dependencies": {
12+
"clsx": "^2.1.1",
13+
"react": "^19.0.0",
14+
"react-dom": "^19.0.0",
15+
"rickmortyapi": "^2.3.0"
16+
},
17+
"devDependencies": {
18+
"@types/react": "^19.1.12",
19+
"@types/react-dom": "^19.1.9",
20+
"@vitejs/plugin-react": "^4.3.4",
21+
"typescript": "~5.7.2",
22+
"vite": "^6.0.5"
23+
}
24+
}

0 commit comments

Comments
 (0)