Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
gnat authored Feb 8, 2024
1 parent b21506c commit 393ac4c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ Or, 🌐 use the CDN: `<script src="https://cdn.jsdelivr.net/gh/gnat/surreal/sur
* 🟠 Style B: `classAdd(me(), 'red')`
* 🌐 Global conveniences help you write less code.
* `globalsAdd()` will automatically warn about any clobbering issues.
* If you prefer no conveniences, just delete `globalsAdd()`
* `me().classAdd('red')` with `globalsAdd()` removed: `$.me().classAdd('red')`
* `classAdd(me(), 'red')` with `globalsAdd()` removed: `$.classAdd($.me(), 'red')`
* If you prefer no conveniences, or are a masochist, delete `globalsAdd()`
* `me().classAdd('red')` becomes: `surreal.me().classAdd('red')`
* `classAdd(me(), 'red')` becomes: `surreal.classAdd(surreal.me(), 'red')`

See: [Quick Start](#quick-start) and [Reference](#reference) and [No Surreal Needed](#no-surreal)

Expand Down

0 comments on commit 393ac4c

Please sign in to comment.