Big things can come from a small package
382 bites minified. Thats ~18,00% than React and ~47,400% less than angular. Wavejs is a tiny package that has all the fancy bells and whistles your favorite frameworks have.
WaveJS is built to have a developer-friendly syntax built on Reacts JSX syntax.
const Page = () => {
const [counter, setCounter] = WJS.useState(0);
return (
<>
<button onClick={() => setCounter(counter + 1)}>
Count: {counter}
</button>
</>
);
}
// Using the built in Hash Router
WJSRouters.HashRouter.create(
{
home: { title: "WaveJS Counter", component: Page }
}
);
// Single page app
WJS.page({ title: "WaveJS Counter" }, Page);
Using Wave.js is super easy!
- Clone WaveJS using
git clone https://github.com/wave-studio/wavejs
- Copy the example source code to your project directory
- Install dependencies (We suggest Yarn classic)
- Run
Yarn dev
ornpm run dev
- Run the script located Here
- Install dependencies (We suggest Yarn classic)
- Run
Yarn dev
ornpm run dev
Refer to our FAQ located Here