Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Use React and CSS to build UI interfaces on canvas

License

NotificationsYou must be signed in to change notification settings

pinqy520/revas

Repository files navigation


npm version

Use React and CSS to build UI interfaces on canvas

Document |中文文档 |Live DEMO |DEMO Code

Install

$ yarn add revas react

Usage

Render to a DOM

importReactfrom'react'import{render,View,Text}from'revas'render(<Viewstyle={{flex:1}}><Textstyle={{fontSize:20}}>Revas</Text></View>,document.getElementById('container'))

Edit purple-browser-h56ht

Render to a DOM rendered by React

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"/>}}

Edit reverent-river-vbypp

Render to a custom canvas api

DEMO

Other Framework


[8]ページ先頭

©2009-2025 Movatter.jp