Skip to content

A ReactJS inspired Framework written in TS for learning purposes

Notifications You must be signed in to change notification settings

V01D-NULL/LumaJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LumaJS

LumaJS is a React inspired framework created for learning purposes. It implements/mimics some of the features and APIs of React but is not intended for production use.

luma

Getting Started

The recommended way to start a new LumaJS project is using create-luma-app:

# This will generate a new LumaJS app in the current working directory.
# npx create-luma-app

You can also install LumaJS locally and import it:

# npm install luma-js

LumaJS has a similar API to React. To use it in your project:

import LumaJS from "../../../package/build/html";

function App() {
  return (
    <div>
      <p>hi!</p>
      <button>click me</button>
    </div>
  );
}

LumaJS.render(<App />, document.getElementById("root"));

Building

Framework:

cd package
yarn install
yarn build # or yarn watch to run tsc in watch mode

Demo app:

cd app/demo
npm i
npm start

Design

LumaJS is built to be very modular, and I have plans to support different target platforms by simply changing the render method.

As of now there is only the browser as a platform, but I soon hope to add mobile (android,iOS) and make it so that LumaJS will only be bundled with the target platform (right now it builds everything)

About

A ReactJS inspired Framework written in TS for learning purposes

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published