Felt cute might delete later idk <3
All-inclusive blazingly fast reactive web framework with zero
configuration, batteries included!
Create a reactive app from template out-of-the-box with eofol-app
.
To create an eofol-app with zero configuration run:
npx @eofol/create-eofol-app (project-name)
npm install --save @eofol/eofol
Development
npm start
Build
npm run build
Test build locally
npm run serve
Clean
npm run clean
Analyze bundle
npm start analyze
Eofol automatically generates bundles from your views on the path .../eofol-app/views/your-view/your-view.js
paired together with a html file in your public folder by the same
filename: .../eofol-app/public/your-view.html
.
renderTarget<CountState>("eofol-target", {
render: (
state: StateTypeImpl<CountState> | undefined,
setState: StateSetter<CountState> | undefined
) => {
const s = state as CountState;
return [
createElement("div", sx({ color: "blue" }), "Targeted element example"),
createElement("div", undefined, `Click count: ${s.count}`),
createElement("button", "eofol-button", "Click!", undefined, {
onclick: () => {
setState && setState({ count: s.count + 1 });
},
}),
createElement("button", "eofol-button", "Reset", undefined, {
onclick: () => {
setState && setState({ count: 0 });
},
}),
];
},
initialState: { count: 0 },
});
Jakub Eliáš wurducius@gmail.com