-
Notifications
You must be signed in to change notification settings - Fork 29
Description
After upgrading react to 15.3.0, it shows the following warning message via the server side rendering:
Warning: You are manually calling a React.PropTypes validation function for the
headprop onHtml. This is deprecated and will not work in the next major version. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.
Warning: You are manually calling a React.PropTypes validation function for thecontentprop onHtml. This is deprecated and will not work in the next major version. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.
I think it may call PropTypes directly within the call path of renderToStaticMarkup
The issue can be reproduced by the following code:
function renderComponent({ componentHtml, head }) {
return renderToStaticMarkup(
<Html
content={componentHtml}
head={head}
/>
);
}
Could you kindly help this issue.
Thanks.