mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-12-14 09:41:18 -05:00
23 lines
554 B
React
23 lines
554 B
React
|
const React = require('react');
|
||
|
const render = require('../../lib/render.jsx');
|
||
|
|
||
|
require('./preview.css');
|
||
|
const GUI = require('scratch-gui').default;
|
||
|
|
||
|
class Preview extends React.Component {
|
||
|
componentDidMount () {
|
||
|
// handle project id in URI
|
||
|
}
|
||
|
render () {
|
||
|
return (
|
||
|
// will need a container to set 'dir' attribute RTL if lang is rtl.
|
||
|
<GUI
|
||
|
className="gui"
|
||
|
previewInfoVisible="false"
|
||
|
/>
|
||
|
);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
render(<Preview />, document.getElementById('app'));
|