These are chat archives for FreeCodeCamp/Help
get help in general - we have more specialized help rooms here: https://gitter.im/FreeCodeCamp/home
person.name. This leaves a syntax error, and I'm not sure why. Example:
(age, person.name) => this.myFunction(age, person.name)
I can't preset a variable as person.name as this property is only available inside a loop (during the map iteration) and the above function is run on a single line because it's called inside the JSX in react's return statement and so cannot be multiline. Any guidance is appreciated.
this.myFunctionand handle it inside your loop
(age, person.name)this is not valid syntax, just use
srchas the non-compiled code, but without context that's just a guess for your use case