refactor: use cache for blogDatas generation

This commit is contained in:
endiliey 2018-07-30 15:23:56 +08:00
parent f7f063c56e
commit a80399631f
4 changed files with 25 additions and 9 deletions

View file

@ -17,8 +17,8 @@ class App extends React.Component {
<div>
{blogDatas.map(({path}) => {
return (
<div>
<Link key={path} to={path}>
<div key={path}>
<Link to={path}>
{path}
</Link>
</div>