Improved Playground. Added document title.

This commit is contained in:
Syrus Akbary 2015-11-28 03:34:49 -08:00
parent 45c52cdb70
commit 9a767aa5da
2 changed files with 18 additions and 7 deletions

View File

@ -1 +1,13 @@
module.exports = require('playground-wrapper');
import React from 'react';
import DocumentTitle from 'react-document-title';
import PlaygroundWrapper from 'playground-wrapper';
class Playground extends React.Component {
render() {
return <DocumentTitle title="Playground - Graphene">
<PlaygroundWrapper />
</DocumentTitle>;
}
}
module.exports = Playground;

View File

@ -1,8 +1,6 @@
// require.ensure([], function(require) {
// require.include('../playground/page');
// });
var React = require('react');
class App extends React.Component {
import React from 'react';
class PlaygroundWrapper extends React.Component {
constructor() {
super();
this.state = { currentComponent: null };
@ -19,4 +17,5 @@ class App extends React.Component {
return Current?<Current />:null;
}
}
module.exports = App;
module.exports = PlaygroundWrapper;