react-validation
react-validation copied to clipboard
Control HOC nothing render before hot reloading
I'm using webpack and webpack-dev-server with HotReplacement. I got this problem:
<Route path="/landing/promo-blocks" exact>
<Form> /* wrapped to form HOC */
input
<Input /> /* wrapped to control HOC */
</Form>
</Route>
rendered to:
<form class="ui-c-form ">input</form>
My Input for simplify (original has same behaviour) is:
control(() => <span>test</span>)
OK. I can't to understand what this, but more strange, that when I change code and provide hot-reloading - result this:
<form class="ui-c-form ">inputd<span>test</span></form>
after full reload <span>test</span> disappeared again