correctly set global react instance