UNPKG

weex-nuke

Version:

基于 Rax 、Weex 的高性能组件体系 ~~

23 lines (18 loc) 556 B
/** @jsx createElement */ import { createElement, Component, render } from 'rax'; import Web from 'nuke-web'; import Page from 'nuke-page'; const App = class NukeDemoIndex extends Component { constructor() { super(); } render() { return ( <Page title="Web"> <Web style={{ width: '600rem', height: '300rem', paddingBottom: '30rem', backgroundColor: '#cccccc' }} src="https://m.taobao.com" /> <Web style={{ width: '600rem', height: '600rem' }} src="https://m.baidu.com" /> </Page> ); } }; render(<App />);