1I had the same symptoms with hooks. Yet my problem was defining a component inside the parent.
2
3Wrong:
4
5const Parent =() => {
6 const Child = () => <p>Some DOM element</p>
7 return <Child />
8}
9Right:
10
11const Parent =() => {
12 const Child = () => <p>Some DOM element</p>
13 return Child()
14}
15