File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -96,17 +96,19 @@ export default class Wrapper extends Component {
96
96
You can replace the ` StyleGuide ` component like this:
97
97
98
98
``` javascript
99
- import React from ' react' ;
99
+ import React , { Component } from ' react' ;
100
100
import Layout from ' react-styleguidist/src/rsg-components/Layout' ;
101
101
import Renderer from ' react-styleguidist/src/rsg-components/Layout/Renderer' ;
102
102
103
- export default function StyleGuide (props ) {
103
+ export default class StyleGuide extends Component {
104
+ componentDidMount () {
105
+ /* _*/
106
+ }
107
+
104
108
render () {
105
109
const LayoutRenderer = Layout (Renderer);
106
110
return (
107
- < div style= {{border: ' 10px solid red' }}>
108
- < LayoutRenderer {... props} / >
109
- < / div>
111
+ < LayoutRenderer {... this .props } / >
110
112
);
111
113
}
112
114
}
You can’t perform that action at this time.
0 commit comments