1
I need help to write a map on a page in React, but inside this map there will be another map, so before arriving at this second map it must render a data from the first map, the current code is like this:
<tr<{generated.student.map((student) =>
            student.evaluation.map((evaluation) => (
              <td>{evaluation.grade}</td>
            ))
          )}</tr>
and I need him to stay that way
      <tr>
          {generated.student.map((student) => {
            <td>{student.name}</td>;
            student.evaluation.map((evaluation) => (
              <td>{evaluation.grade}</td>
            ));
          })}
        </tr>
When I make the above code, it sends this error:
Line 55:17:  Expected an assignment or function call and instead saw an expression
how can I make to call the function in the style of the second code?
Thanks, that’s just what I needed :v
– Hiran Júnior
@Hiranjúnior I ask you to accept the answer so please.
– pharoeste
How do I do it? I’m new here :V
– Hiran Júnior