I have a reactjs.net implementation... nothing fancy. I understand all the code but cannot see why I get an error in the web-console:
Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render
Basically, I have a working JSX file and render it in a asp.net mvc view with
@Html.React("myClass",{ data = "Martin" })
@Html.ReactInitJavascript()
The component is rendered fine and I tested it with serverSideOnly etc. All good. But with the above configuration, I get the mentioned error. I looks like React is trying to re-render the component instead of just hooking up event handlers as the documentation says.
Any clue what I am doing wrong?