import react from window in browserified module