"Batteries-included" library for Web Components inspired by React.
Getting started
Getting started with Pillar is extremely easy.
-
Install Babel preset:
npm install --save-dev babel-preset-pillar
and add it to your
.babelrc
: -
Create a component:
import Pillar from 'pillarjs';{return<div><h1>propsmainContent</h1><h1> Superpowered!</h1></div>;}Pillar; -
Use it in your HTML:
......
The resulting HTML will be:
It's not a simple header. It's Superpowered!
Documentation
Check out the docs to learn about rendering from strings and template tags, alternative build configurations and everything else.