echelonjs
Version:
A new JSX/TSX based framework with decorator-driven reactivity.
43 lines (31 loc) • 1.31 kB
Markdown
# Echelon Framework
Echelon is a decorator-driven framework with full JSX/TSX support. It lets you build modular components in TypeScript with minimal boilerplate.
## Key Features
* **Decorator based reactivity**: Manage component state and attributes using decorators such as ``, `` and ``.
* **JSX/TSX support**: Full TypeScript and JSX support improves type safety and developer productivity.
* **Component system**: Build and manage modular UI using reusable components.
* **Declarative rendering**: Define component UI declaratively with the `` decorator.
* **Event handling**: Handle DOM events easily via the `` decorator.
* **Lifecycle management**: Define lifecycle hooks like `` for components.
## Quick Start
```bash
npm install echelonjs
```
```typescript jsx
import { createElement, Component, Render, State, mount } from 'echelonjs';
class Counter {
count = 0;
render() {
return <span>{this.count}</span>;
}
}
const root = document.getElementById('app');
if (root) {
mount(<Counter />, root);
}
```
For full installation instructions and a detailed tutorial, see the [documentation](docs/README.md).
## License
This project follows the [MIT](LICENSE) license as specified in `package.json`.