Skip to content

Commit 5ce902c

Browse files
authored
Revised usage examples.
1 parent ce061db commit 5ce902c

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,13 @@ Or, 🌐 via CDN: `<script src="https://cdn.jsdelivr.net/gh/gnat/surreal@main/su
9797

9898
* ♻️ All functions work on single elements or arrays of elements.
9999
* 🔗 Start a chain using `me()` and `any()`
100-
* 🟢 Style A `me().classAdd('red')` ⭐ Chain style. Recommended!
101-
* 🟠 Style B: `classAdd(me(), 'red')`
100+
* 🟢 Style A: `me().classAdd('red')`Recommended! Chain style.
101+
* 🔵 Style B: `classAdd(me(), 'red')`
102102
* 🌐 Global conveniences help you write less code.
103-
* `globalsAdd()` will automatically warn you of any clobbering issues!
104-
* 💀🩸 If you want no conveniences, or are a masochist, delete `globalsAdd()`
105-
* 🟢 `me().classAdd('red')` becomes `surreal.me().classAdd('red')`
106-
* 🟠 `classAdd(me(), 'red')` becomes `surreal.classAdd(surreal.me(), 'red')`
103+
* `globalsAdd()` will automatically warn you of any clobbering issues.
104+
* If you do not want global conveniences, delete `globalsAdd()`
105+
* 🟠 Style C: `surreal.me().classAdd('red')`
106+
* 🟡 Style D: `surreal.classAdd(surreal.me(), 'red')`
107107

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

0 commit comments

Comments
 (0)