Created my own implementation of react with some additions to Rodrigo Pombo's version.
- Functional components.
- Array of children inside the jsx javascript.
A test app was built using this.
Run
npm i -S Abhicoding/geekDOM#master
-
Add the following code
on top of each component file.
// @jsx h
-
Import the follwing. (Component is not needed for functional component)
import {render, h, Component} from 'geekdom'
- Write the code as you would in React. The class attribute in jsx is written as it is.
- The value attribute for tags is written as it is.