Hi guys,
I'm trying to hydrate a SSR markup with react, But i always get this Warning:
warning.js:33 Warning: Did not expect server HTML to contain the text node "Mika" in <section>
This is the component that is rendered on server
class Home extends Component {
constructor( props ) { super( props ) }
render(){
return "Mika"
}
}
and when i view page source i get
<section id="rootNode">Mika</section>
There is not mismatch at all, but still i get this warning,
One thing i noticed, when i send nothing the error disappers.
<section id="rootNode"></section>
although the components renders "Mika" on client
any idea how to fix this issue,
Thanks.
No responses yet.