hexo-renderer-react
hexo-renderer-react copied to clipboard
Warning: React.createElement(...): Expected props argument to be a plain object
This is a warning sent by the hexo console.
For some reasons, when I log the props of my layout.jsx
and index.jsx
, they do not contain the expected locals such as page
or site
but they are given not an object but an integer, 2
.
I have no idea why, considering it is a brand new hexo blog (@3.2.2) generated with hexo init
, thus containing a single blog post.
This looks like the local context passed to the renderer isn't what it used to be. I'll have to dig up some time to look at this further.