0.2.0 • Published 8 years ago
@elimux/core v0.2.0
Elimux
Elimux is a react component library under development.
Usage
Add elimux as a dependency using npm:
$ npm i @elimux/core
Import the component library into your project
import * as React from "react";
import * as Core from "@elimux/core";
interface Item {
name: string;
price: number;
}
class ItemList extends Core.Components.List<Item> {
renderItem(item: Item) {
return <span><b>{item.name}</b>: £{item.price}</span>;
}
}
class HomePage extends Core.Components.Page {
render() {
return (
<div>
<h2>Items</h2>
<ItemList items={[
{ name: "Orange", price: 0.99 },
{ name: "Bannana", price: 1.15 }
]}/>
</div>
);
}
}
Features
Feature | Status |
---|---|
Currency | Needs Design |
List | In Progress, Needs Design |
Page | In Progress, Needs Design |