Skip to content
This repository was archived by the owner on Mar 30, 2022. It is now read-only.

markushauge/rocket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

71 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Rocket

Build composable HTML pages with modern JavaScript and ๐Ÿš€.

Why?

Inspired to create a library that allows for the same easy and flexible DOM rendering in JavaScript as React. The goal is to reason about how React handles DOM rendering, and create a rendering system from scratch that can be used in assignments that require pure HTML, CSS and JavaScript only. No additional tools required, although ESLint can be helpful for development.

Usage

Take a look at the example code.

Tip

Export Rocket from a local file to reduce typing:

export * from 'https://raw.githack.com/fshauge/rocket/master/lib/index.js';

Progress / features

  • Render simple DOM elements (h1, p, div, etc.)
  • Render stateless components (function)
  • Create a virtual DOM (VDOM) and render it
  • Implement patching (patching the VDOM and rendering parts of it)
  • Render stateful componets (class)

About

Build composable HTML pages with modern JavaScript and ๐Ÿš€

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors