Update README.md

This commit is contained in:
Andros Fenollosa 2020-07-17 18:04:01 +02:00 committed by GitHub
parent b5fe682764
commit 988c7c15dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,11 +1,15 @@
# FFNM (Front-End for the next master)
``` html
<button i-click="class:add('press')">open</button>
<button i-click="class:add('open', 'article')">open</button>
<article></article>
```
👇 🖱 **Click!** 👇
``` html
<button class="press" i-click="class:add('press')">open</button>
<button i-click="class:add('open', 'article')">open</button>
<article class="open"></article>
```
Simple utility to **avoid writing Javascript** when working with **classes**. It only takes up **2Kb**!