Frequently Asked Questions (FAQ)

What is Sigment?

Sigment is a lightweight, fine-grained reactive JavaScript framework that allows you to build fast, maintainable UIs without virtual DOM or JSX.

Do I need JSX or a build step?

No! Sigment uses plain JavaScript tag functions, so you can write UI code without transpilers or JSX syntax.

How does reactivity work in Sigment?

Sigment uses fine-grained signals to track dependencies at the element level, so only the minimal necessary DOM updates happen.

Can I define custom elements?

Yes, you can dynamically add new tag functions with addsigment() for custom element names.

Does Sigment support TypeScript?

Absolutely! Sigment is built with TypeScript support in mind, and you can declare types for custom tags to get full typing.

Does Sigment support fragments?

Yes, developers can choose to use fragments to boost performance and reduce unnecessary wrapper elements in the DOM.

How does Sigment compare to frameworks like React or Vue?

Sigment offers fine-grained reactivity without virtual DOM or JSX, resulting in a tiny runtime (<5KB) and straightforward, vanilla JavaScript coding style.

Can Sigment be used with backend frameworks?

Yes, Sigment works well with backend frameworks like Express.js and can be integrated easily for full-stack development.

Is Sigment suitable for large-scale applications?

Yes, Sigment’s reactive model and modular design make it scalable and maintainable for complex applications.

Where can I find documentation and examples?

Visit the official Sigment docs at https://sigment.dev for guides, API reference, and examples.