proton-native/Demo.js
Niklas Mischkulnig 7d985e4d3e Fix package.json files (#63)
- put build tools into devDependencies (closes #62)
- Silence `warning package.json: License should be a valid SPDX license expression`
- `./node_modules/.bin/` isn't needed in npm scripts
- make Demo.js look better
2018-03-22 09:50:17 -04:00

17 lines
360 B
JavaScript

import React, { Component } from 'react';
import { render, Window, App, TextInput, Dialog } from './src/';
class Example extends Component {
render() {
return (
<App>
<Window title="Test" size={{ w: 500, h: 500 }} margined={true}>
<TextInput stretchy={false} />
</Window>
</App>
);
}
}
render(<Example />);