1.0.11 • Published 2 years ago

@grasse/core v1.0.11

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Introduction

Do you ever feel it's hard to sync data between variable and rendered DOM?

Then, maybe this package is for you. With this, you can change variable, and rendered DOM will be changed without using virtual DOM.

Example

From this line of code:

import * as Grasse from '@grasse/core'
let count = ((0))
let powered = count ** 2
document.body.append(<button onclick={()=>{count++}}>Clicked {((count))} times!</button>)
document.body.append(<div>{((count))} * {((count))} = {((powered))}</div>)

We made clicky button:

Alt Text

*Disclaimer -> This code needs to be compiled using babel using @grasse/babel-plugin-transform plugin, don't forget to use JSX preset, and it's recomended to use unbundled development bundler like snowpack (not sponsored)

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago