You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The description of the warning does not say much, so I couldn't investigate further. However, when I change the above code to a simple <div> tag, the warning disappears, so I suspect that there is something wrong with the sever-side rendering of the Card component.
If there's a way to get more information about the warning I could look into it, I just have no idea how :).
Context
Your Environment
Tech
Version
Material-UI
1.0.0-beta.25
React
16.2.0
browser
Google Chrome 63.0.3239.108 (Official Build) (64-bit)
The text was updated successfully, but these errors were encountered:
Your issue has been closed because it does not conform to our issue requirements.
Please provide a full reproduction test case. This would help a lot 👷 .
A live example would be perfect. This codesandbox.io templatemay be a good starting point. Thank you!
In your case, a codesandbox might not be enough. A repository would be perfect. However, I have some doubt about the issue description as we don't experience the issue on the documentation web site. I see two potential source of this issue.
you are using an invalid HTML DOM structure. For instance nesting a div inside a p is invalid and will lead to the issue describe.
When use the Card component and also SSR, React 16 gives the following message:
Expected Behavior
A Card component should render on the serve side, so the client side doesn't have to do anything with it and should return no warning.
Current Behavior
When I use the Card component with React 16 like this:
it gives the following error on hydration:
The description of the warning does not say much, so I couldn't investigate further. However, when I change the above code to a simple
<div>
tag, the warning disappears, so I suspect that there is something wrong with the sever-side rendering of the Card component.If there's a way to get more information about the warning I could look into it, I just have no idea how :).
Context
Your Environment
The text was updated successfully, but these errors were encountered: