moijs
v0.0.7-alpha
Published
Light JSX Library Inspired by React and Vue
Downloads
2
Readme
MoiJS Core
Built by Node GG and Friends!
Introduction
A Project originally created to help me become a better programmer. This is a light and simple Web Framework/Library influenced by React and VueJS. This project allows for components to be written in Jsx to create simple single-page apps.
Current State
MoiJs is currently under develop in an Alpha state meaning that there are a lot of bugs that need to be worked out before we can truly get the ball rolling. This also means that the project will be updated as soon as something is added and tested.
Features/What Works
- Components written in Jsx.
- Component props.
- Component state.
- Currently accepts CSS via external stylesheets. [w.i.p]
Getting Started
- it can be installed with NPM or Yarn:
npm install //For dependencies
npm start //For developing
And used just as a regular JavaScript library:
import {render, Component, createElement} from 'moijs/moi'; // For root Component
or
import {Component, createElement} from 'moijs/moi' // To Create Components
Due to its nature, Moi can consume JSX - just don't forget to hook up the Babel together with React preset:
/** @jsx createElement **/
render(<div>Hello World!</div>, document.getElementById('root'));
Notice that `@jsx` pragma comment - without it Babel will fail to tie proper element factory function.
Check :code:`example` folder for a bigger snippet. View my .babelrc file
To/Do
- coming soon
Authors
- Warren Gates => Lead Developer