fix syntax error with react