Skip to content

devsnek/to_cell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

convert structures to cell

> const to_cell = require('to_cell')
undefined
> to_cell.jsx('<h1></h1>')
[ { '$type': 'h1', '$cell': true } ]
> to_cell.html('<h1></h1>')
[ { '$type': 'h1', '$cell': true } ]
> to_cell.jsx('<h1 onclick={() => {}}></h1>')
[ { '$type': 'h1', '$cell': true, onclick: [Function] } ]
> to_cell.jsx('<h1 onclick={() => {}}>hi</h1>')
[ { '$type': 'h1',
    '$cell': true,
    onclick: [Function],
    '$text': 'hi' } ]
> to_cell.html('<h1>hi</h1>')
[ { '$type': 'h1', '$cell': true, '$text': 'hi' } ]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published