convert to React from Angular
fix some whitespace