Skip to content

Latest commit

 

History

History
42 lines (34 loc) · 902 Bytes

README.md

File metadata and controls

42 lines (34 loc) · 902 Bytes

# geekDOM

A stripped down clone of React

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.

How to install :

Run

npm i -S Abhicoding/geekDOM#master

How to use :

  • 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'

Usage Pointers

  • 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.