File tree Expand file tree Collapse file tree 2 files changed +18
-7
lines changed Expand file tree Collapse file tree 2 files changed +18
-7
lines changed Original file line number Diff line number Diff line change 1
- module . exports = require ( 'playground-wrapper' ) ;
1
+ import React from 'react' ;
2
+ import DocumentTitle from 'react-document-title' ;
3
+ import PlaygroundWrapper from 'playground-wrapper' ;
4
+
5
+ class Playground extends React . Component {
6
+ render ( ) {
7
+ return < DocumentTitle title = "Playground - Graphene" >
8
+ < PlaygroundWrapper />
9
+ </ DocumentTitle > ;
10
+ }
11
+ }
12
+
13
+ module . exports = Playground ;
Original file line number Diff line number Diff line change 1
- // require.ensure([], function(require) {
2
- // require.include('../playground/page');
3
- // });
4
- var React = require ( 'react' ) ;
5
- class App extends React . Component {
1
+ import React from 'react' ;
2
+
3
+ class PlaygroundWrapper extends React . Component {
6
4
constructor ( ) {
7
5
super ( ) ;
8
6
this . state = { currentComponent : null } ;
@@ -19,4 +17,5 @@ class App extends React.Component {
19
17
return Current ?< Current /> :null ;
20
18
}
21
19
}
22
- module . exports = App ;
20
+
21
+ module . exports = PlaygroundWrapper ;
You can’t perform that action at this time.
0 commit comments