Skip to content

Commit 3a89ac4

Browse files
Add note about globals
1 parent 7a56b28 commit 3a89ac4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ const render = () => element.innerText = parity();
4545
// Simulate external updates to counter...
4646
setInterval(() => setCounter(counter + 1), 1000);
4747
```
48+
> [!NOTE]
49+
> Globals are used here for demonstration purposes only. Proper state management has many solutions, and the examples in this proposal are meant to be as minimal as possible. This porposal does not encourage global variables.
50+
4851

4952
This has a number of problems...
5053

0 commit comments

Comments
 (0)