Wompo is a performant React-like JS library to create Web-Components that are re-usable, shareable, and beginner-friendly.
npm install wompoCheck the full documentation for Wompo at wompo.dev.

Creating a custom Counter component is very easy with Wompo, and works exactly like React!
``js
import { defineWompo, html } from 'wompo';
export default function CounterComponent({ styles: s }) {
const [count, setCount] = useState(0);
const inc = () => setCount(count + 1);
return html;
}
CounterComponent.css =
.button {
border-radius: 10px;
background-color: #573ef6;
color: #fff;
padding: 10px 20px;
border: none;
}
defineWompo(CounterComponent);
`
Then, you can simply render it in you HTML:
`html`
Wompo supports JSX. If you use it with Typescript, write this in your tsconfig.json file:
`json``
"jsx": "react-jsx",
"jsxImportSource": "wompo",