correctly set global react