Skip to content

Commit f0f32f7

Browse files
Update README.md
add createState description and example
1 parent 251867e commit f0f32f7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
- **Deep property assignment**: Supports nested property structures for complex elements.
88
- **Simplified content appending**: Accepts strings or elements as child content.
99
- **DOM element selection**: Use `$` and `$$()` to select elements from the DOM.
10+
- **Reactive State Management**: Utilize `createState` for reactive data binding. See this [repository](https://github.com/victorqribeiro/TinyApp) for an example using this new function.
1011

1112
## How It Works
1213
TinyJS attaches functions for each HTML tag (like `div`, `span`, `a`, etc.) to the global window object. You can create elements by simply calling the tag name as a function, passing in optional properties and child elements.

0 commit comments

Comments
 (0)