require React to be passed as param for commonJS init