- Notifications
You must be signed in to change notification settings - Fork14
Use React and CSS to build UI interfaces on canvas
License
NotificationsYou must be signed in to change notification settings
pinqy520/revas
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Use React and CSS to build UI interfaces on canvas
Document |中文文档 |Live DEMO |DEMO Code
$ yarn add revas react
importReactfrom'react'import{render,View,Text}from'revas'render(<Viewstyle={{flex:1}}><Textstyle={{fontSize:20}}>Revas</Text></View>,document.getElementById('container'))
importReactfrom'react'import{render,View,Text}from'revas'exportclassWidgetextendsReact.Component{componentDidMount(){this.app=render(<Viewstyle={{flex:1}}><Textstyle={{fontSize:20}}>Revas</Text></View>,document.getElementById('container'),this)}componentDidUpdate(){this.app.update()}componentWillUnmount(){this.app.unmount()}render(){return<divid="container"/>}}
- Vue -huruji/vuvas by@huruji
About
Use React and CSS to build UI interfaces on canvas
Topics
Resources
License
Stars
Watchers
Forks
Packages0
No packages published