switching to reactjs