Velox Framework revolutionizes web development with zero Virtual DOM and surgical precision updates. Designed to deliver exceptional performance, it compiles declarative JSX directly to DOM operations, allowing for O(1) updates in a minimal runtime footprint. Enjoy modern tooling, compatibility with existing ecosystems, and a simple API, making it a compelling choice for developers.
Velox Framework is a cutting-edge web framework that prioritizes both performance and developer experience. By eliminating reliance on a Virtual DOM, Velox compiles declarative JSX directly into precise DOM manipulations, ensuring applications achieve O(1) updates. This innovative approach results in a lightweight runtime that is exceptionally efficient.
createSignal, createEffect).The Velox ecosystem comprises several packages to enhance development:
| Package | Description |
|---|---|
@remyyy/velox | Core framework |
@remyyy/create-velox | Scaffolding tool for quick setup |
@remyyy/vite-plugin-velox | Vite integration for JSX configuration |
Velox employs Signals for state management, simplifying development by avoiding traditional class components and complex bindings. Here's a brief example:
// src/App.tsx
import { createSignal } from '@remyyy/velox';
export default function Counter() {
const [count, setCount] = createSignal(0);
return (
<div className="card">
<h1>Count is {count()}</h1>
<div className="actions">
<button onClick={() => setCount(c => c + 1)}>Increment</button>
<button onClick={() => setCount(c => c - 1)}>Decrement</button>
</div>
</div>
);
}
Furthermore, side effects can be managed using createEffect, which tracks dependencies automatically, facilitating clean and efficient code:
import { createSignal, createEffect } from '@remyyy/velox';
const [userId, setUserId] = createSignal(1);
createEffect(() => {
console.log(`User ID changed to: ${userId()}`);
fetchUserData(userId());
});
Comprehensive documentation is available, detailing an API reference, component structure, and contributing guidelines. Users can access this information within the docs directory to effectively utilize the framework to its full potential.
No comments yet.
Sign in to be the first to comment.