The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

westwell (12) [Avatar] Offline
#1
Really enjoying the book. Learnt a huge amount so far.

I noticed a warning when I ran the initial "Tasks" code in chapter 2 because of a comment in the JSX. React seems to be wanting comments to be in braces. This version of the code doesn't give a warning. Wonder if it's worth changing comments in JSX to use this format, since readers will be copying and pasting the code as-is

import React from 'react';
const Task = ({task}) => { // #A
return (
<div className="task">
<div className="task-header">
<div>{task.title}</div> {/* #B */}
</div>


<div className="task-body">{task.description}</div>
</div>
); }
export default Task;
Marc Garreau (28) [Avatar] Offline
#2
Thanks for reading and for making the suggestion! These comments will get cleaned up and replaced with proper arrows and annotations in the final publication. I think that will be released in the next week or two.