@ssorallen tipped me off to a more correct way of bootstrapping react.