Ported all of the front-end logic to React.