update parts of a page with react