mirror of
https://github.com/kusti8/proton-native.git
synced 2026-05-15 14:15:50 -06:00
19 lines
No EOL
427 B
JavaScript
19 lines
No EOL
427 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" size={{w: 300, h: 300}} menuBar={false}>
|
|
<Button stretchy={false} onClick={() => console.log('Hello')}>
|
|
Button
|
|
</Button>
|
|
</Window>
|
|
</App>
|
|
);
|
|
}
|
|
}
|
|
|
|
render(<Example />); |