Skip to content

Commit

Permalink
Add note about globals
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli authored Nov 13, 2024
1 parent 7a56b28 commit 3a89ac4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ const render = () => element.innerText = parity();
// Simulate external updates to counter...
setInterval(() => setCounter(counter + 1), 1000);
```
> [!NOTE]
> 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.

This has a number of problems...

Expand Down

0 comments on commit 3a89ac4

Please sign in to comment.