React Function Unexpected Token Expected