React: move definition of ReactMorph