|
@@ -24,7 +24,6 @@ class App extends React.Component {
|
|
|
return (
|
|
return (
|
|
|
<div>
|
|
<div>
|
|
|
<Page title={markdown.part1[0].title} md={markdown.part1[0].content} />
|
|
<Page title={markdown.part1[0].title} md={markdown.part1[0].content} />
|
|
|
- <Page title={markdown.part1[1].title} md={markdown.part1[1].content} />
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
);
|
|
);
|
|
@@ -35,7 +34,9 @@ class App extends React.Component {
|
|
|
class MarkdownPage extends React.Component {
|
|
class MarkdownPage extends React.Component {
|
|
|
render() {
|
|
render() {
|
|
|
return (
|
|
return (
|
|
|
- <ReactMarkdown source={input} />
|
|
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <Page title={markdown.part1[1].title} md={markdown.part1[1].content} />
|
|
|
|
|
+ </div>
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -48,7 +49,7 @@ ReactDOM.render(
|
|
|
<li><Link to="/md">Md</Link></li>
|
|
<li><Link to="/md">Md</Link></li>
|
|
|
</ul>
|
|
</ul>
|
|
|
<Switch>
|
|
<Switch>
|
|
|
- <Route path="/" component={App} />
|
|
|
|
|
|
|
+ <Route exact path="/" component={App} />
|
|
|
<Route path="/md" component={MarkdownPage} />
|
|
<Route path="/md" component={MarkdownPage} />
|
|
|
</Switch>
|
|
</Switch>
|
|
|
</div>
|
|
</div>
|