Installation
Installing Cuek is simple.
Step 1: Install the library
Throw this into your terminal.
npm i cuekjs
Step 2: Update your tsconfig
TypeScript needs to know you are not using React. You need to be explicit with your configuration. Update your tsconfig.json so it actually understands who is in charge of your JSX.
{
"compilerOptions": {
"jsx": "react-jsx",
"jsxImportSource": "cuekjs"
}
}
Step 3: Hello World
Here is exactly how you get your first Cuek component on the screen.
import { mount } from "cuekjs";
function App() {
return () => <h1>Hello World</h1>;
}
mount(document.getElementById("app"), <App />);
That is it. You are done. Go build something.
Use a real bundler
We recommend using Vite because it is fast and modern. However, Cuek is designed to be bundler-agnostic. Whether you use Webpack, Rollup, or even build your own custom system from scratch, Cuek will work exactly how you expect.