diff --git a/lib/core/blogPost.js b/lib/core/blogPost.js index d3611ade2f..bc02cbfdc1 100644 --- a/lib/core/blogPost.js +++ b/lib/core/blogPost.js @@ -1,4 +1,4 @@ -const React = require('react'); +import React from 'react'; import blogDatas from '@generated/blogDatas'; // inner blog component for the article itself, without sidebar/header/footer diff --git a/lib/core/index.js b/lib/core/index.js index 5f95439fb0..fcda46fd90 100644 --- a/lib/core/index.js +++ b/lib/core/index.js @@ -18,9 +18,7 @@ class App extends React.Component { {blogDatas.map(({path}) => { return (