His example:
const withDagobah = PlanetViewComponent =>
class extends React.Component {
...
}
}
Seems as if it would be pretty bad from a perf perspective. It's defining a class every time that function is called. Anyone familiar with the dark underside of JavaScript care to comment?