updated to work with versions of atom > 0.124.0 as core.useReactEditor deprecated