tiio-router

0.0.2 • Public • Published

欢迎使用 Pinna

一个类似于react的前端库。

安装使用

npm install pinna
import { h, render, Component } from 'pinna'

class App extends Component{
	state(){
		return {
			test:1
		}
	}
	mounted(){
		setTimeout(()=>{
			this.state.test = 2
		},1000)
	}
	render( { id }, { test } ){
		return <div id={ id }> { test } </div>
	}
}

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i tiio-router

Weekly Downloads

2

Version

0.0.2

License

MIT

Unpacked Size

6.5 kB

Total Files

3

Last publish

Collaborators

  • anuny