About Component.Js
Component.Js is a small and simple JavaScript library that helps you build interactive websites—kind of like Vue or Angular, but much easier to use.
You don’t need to install anything or set up a complicated build system to get started. Just include the script in your page and you’re ready to go. (But if you want to make the file smaller, using a build tool is recommended.)
Why I Created This
I really like using Vue.js, and it inspired me a lot. Many parts of Component.Js look similar to Vue, so if you’ve used Vue before, it should feel familiar. I’ll point out where things are the same—and where they’re different.
But even though I like Vue, I wanted something a bit more comfortable and easier for my own projects.
Some small examples:
In Vue, you must register every component you import. In Component.Js, components can register themselves inside their own files.
In Vue, you need to define props manually. In Component.Js, it can detect and use props automatically from attributes.
I’m not trying to compete with Vue, React, or Angular. This is just a personal project I made to simplify my own development—and maybe help others who feel the same.
It also gives me full control to keep improving the core, add new features, and make the syntax even easier.
A Tiny Library with Big Plans
Right now, Component.Js is very lightweight—less than 20KB—but I’ve only just begun. More useful features will be added in the next versions, all while keeping things easy and beginner-friendly.