This commit is contained in:
afc163 2016-10-10 19:40:53 +08:00
parent 3ac6532577
commit 0d8267c71c
2 changed files with 6 additions and 6 deletions

View File

@ -89,9 +89,7 @@ export default class Demo extends React.Component {
highlightedStyle ?
<div key="style" className="highlight">
<pre>
<code className="css" dangerouslySetInnerHTML={{
__html: highlightedStyle,
}} />
<code className="css" dangerouslySetInnerHTML={{ __html: highlightedStyle }} />
</pre>
</div> :
null

View File

@ -8,9 +8,11 @@ export default function NotFound() {
<h1>404</h1>
<p>你要找的页面不存在 <Link to="/">返回首页</Link></p>
</section>
<style dangerouslySetInnerHTML={{
__html: '#react-content { height: 100%; background-color: #fff }',
}} />
<style
dangerouslySetInnerHTML={{
__html: '#react-content { height: 100%; background-color: #fff }',
}}
/>
</div>
);
}