Skip to content

crewdevio/Insertion-JS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

41 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

GitHub license npm npm bundle size

Insertion JS

Insertion JS is a Javascript library for build user interfaces using JSX and vDOM

Installation

Use the package manager npm to install.

npm i insertion

Hello World

⚠ It is important that all jsx components have /_ @jsx insertionJsx _/ at startup so that the compiler does not compile to react js ⚠

/* @jsx insertionJsx */

import {
  insertionJsx,
  createElement,
  mount,
  render,
  Fragment,
} from "insertion";

function App({ message }) {
  return (
    <Fragment>
      <h1>{message}</h1>
    </Fragment>
  );
}

const app = createElement(<App message={"hello world"} />);

mount(render(app));

Running Hello World

npm install
// working on!
npm run start:server

Documentation

API Reference

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

About

build user interfaces using JSX and vDOM πŸ±β€πŸ‘€

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

 
 
 

Contributors