Skip to content

pfmjs/unreact

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unreact 2.0.0

A lightweight react alternative, which way more simplerer to use, below is the installation guide and Usage guide

Installation

npm install @pfmcodes/unreact

Usage

const { init, Element } = require('@pfmcodes/unreact');

// Initialize the app with a root tag
init("MyApp");

// Create elements
Element.create("h1", "MyApp"); // Creates an h1 tag with text "MyApp" as the root in body tag
Element.create("div");         // Creates a div tag
Element.create("p", "MyApp works!", "div"); // Adds a p tag inside the div tag with text

// Remove elements
Element.remove(Element); // Removes an element from the DOM

// You can use tag names, classes (".className"), or IDs ("#id") as selectors

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •