Skip to content
/ airx Public
forked from airxjs/airx

☁️ airx is a simple enough JSX web application framework.

License

Notifications You must be signed in to change notification settings

yinxulai/airx

 
 

Repository files navigation

airx npm build status

Arix is a front-end framework based on JSX, but it doesn't have hooks like React.

Use

import * as airx from 'airx'

// create a reaction value
const outsideCount = airx.createSignal(1)

// define a component
function App() {
  // create a reaction value
  const innerCount = airx.createSignal(1)

  const handleClick = () => {
    innerCount.value += 1
    outsideCount.value +=1
  }

  // return a render function
  return () => (
    <button onClick={handleClick}>
      {innerCount.value}
      {outsideCount.value}
    </button>
  )
}

airx.createApp(<App />).mount(document.getElementById('app'))

About

☁️ airx is a simple enough JSX web application framework.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.5%
  • JavaScript 0.5%