proton-native/docs/js_example.js
2018-02-11 17:01:02 -05:00

19 lines
431 B
JavaScript

import React, { Component } from 'react';
import { render, Window, App, Button } from 'proton-native';
class Example extends Component {
render() {
return (
<App>
<Window title="Example" height={300} width={300} menuBar={false}>
<Button stretchy={false} onClicked={() => console.log('Hello')}>
Button
</Button>
</Window>
</App>
);
}
}
render(<Example />);