Deleight gives you full control with zero bloat.
Try Deleight NowDeleight is optimized for speed and efficiency, with a small footprint.
With efficient updates, Deleight delivers smooth interactions.
No complex dependencies. Just pure JavaScript, optimized.
Deleight easily integrates into your existing codebase, allowing you to build or migrate without hassle.
Whether you're building a small app or a large-scale system, Deleight scales seamlessly without introducing unnecessary complexity.
With Deleight's native event handling system, you can easily manage user interactions without relying on external libraries.
Each module in Deleight is completely independent, allowing you to only use what you need, and extend it when required.
Deleight is dependency-free, ensuring fewer bugs, better performance, and fewer maintenance headaches.
Deleight works flawlessly across modern browsers, ensuring your application runs smoothly for all users.
Deleight’s concise syntax reduces repetitive code, making it quicker and easier to develop and maintain.
Deleight supports advanced data binding mechanisms that allow for easier state management, even with complex applications.
With Deleight, you get full control over how and when the UI gets updated, giving you more flexibility in optimization.
First, you need to set up a new Deleight project. Follow these steps:
npm init
to create a new package.json file.npm install deleight
.Next, let's create a simple component. Deleight components are modular and reusable. Here's how to create one:
import { hh } from 'deleight/dom/builder';
const MyComponent = hh.h1('Hello, Deleight!');
export default MyComponent;
This component renders a simple "Hello, Deleight!" message to the screen.
Now that you've created your component, let's render it to the screen. Add the following code to your main application file:
import MyComponent from './MyComponent';
MyComponent.appendTo(document.getElementById('app'));
This will render your component inside the element with the ID of "app".
Congratulations! You've just created your first Deleight app. From here, you can explore more advanced features like reactivity, state management, and component patterns. Check out our other tutorials to take your skills further!