Lioncat2002 / SmikeJS

A JSX framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SmikeJS

SmikeJS is a react-esque jsx framework which lets you make frontend applications super fast!

Usage:

To use SmikeJS, just drop in the Smike.js file into your project and you will be ready to go!

Example:

SmikeJS Counter App:

import Smike from "./Smike"

/** @jsx Smike.createElement */
const container=document.getElementById("app")

function Counter(){
  const [state,setState]=Smike.useState(1)
  return (
    <h1 onClick={()=>setState(c=>c+1)}>
      Counter: {state}
    </h1>
  )
}


const element = <Counter/>
Smike.render(element, container)

About

A JSX framework

License:Apache License 2.0


Languages

Language:JavaScript 88.4%Language:CSS 9.4%Language:HTML 2.2%