Skip to content

Commit 10ec2d4

Browse files
committed
Flattened dist folder, one more reactivity test.
1 parent d8bf1d1 commit 10ec2d4

File tree

4 files changed

+17
-1
lines changed

4 files changed

+17
-1
lines changed

docs/reactivity.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,13 @@ createEffect(() => {
503503
const [count] = createSignal();
504504
const el = <div>{(() => count())()}</div>;
505505

506+
const [count, setCount] = createSignal();
507+
const el = (
508+
<button type="button" onClick={() => setCount(count() + 1)}>
509+
Increment
510+
</button>
511+
);
512+
506513
const el = <div />;
507514

508515
const [signal] = createSignal();

deps.d.ts renamed to src/deps.d.ts

File renamed without changes.

test/rules/reactivity.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ export const cases = run("reactivity", rule, {
8585
})`,
8686
`const [count] = createSignal();
8787
const el = <div>{(() => count())()}</div>`,
88+
`const [count, setCount] = createSignal();
89+
const el = <button type="button" onClick={() => setCount(count() + 1)}>Increment</button>;`,
8890
// Parse top level JSX
8991
`const el = <div />`,
9092
// getOwner/runWithOwner

tsconfig.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,12 @@
1313
"lib": ["ES2019"],
1414
"allowJs": true
1515
},
16-
"include": ["src", "test", "scripts", "deps.d.ts", "standalone", "jest.setup.js"]
16+
"include": [
17+
"src",
18+
"test",
19+
"scripts",
20+
"standalone/index.js",
21+
"standalone/dist.d.ts",
22+
"jest.setup.js"
23+
]
1724
}

0 commit comments

Comments
 (0)