We should maybe just export this from ReactComponent, but then requiring it might lead to some circular dependencies :/