Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const AppQuestionIdentify = props =>
- <div>
- {
- props.question.options.map((question,index) =>
- [<button
- key={3*index}
- onClick={() => props.store.dispatch({type: SELECT_IDENTIFY_BUTTON, option: question})}
- dangerouslySetInnerHTML={{__html: question}}>
- </button>,
- {props.response.selected.indexOf(question) != -1 &&
- <span key={3*index+1}>
- ": " + props.response.selected[props.response.selected.indexOf(question)].count
- </span>
- },
- <br key={3*index+2} />]
- ).reduce((xs, ys) => xs.concat(ys))
- }
- </div>
- /*
- SyntaxError: src/app.js: Unexpected token, expected , (79:9)
- 77 | dangerouslySetInnerHTML={{__html: question}}>
- 78 | </button>,
- > 79 | {props.response.selected.indexOf(question) != -1 &&
- | ^
- 80 | <span key={3*index+1}>
- 81 | ": " + props.response.selected[props.response.selected.indexOf(question)].count
- 82 | </span>
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement