Development Tools

James Nguyen
PRO
James Nguyen
Pro Student 5,076 Points

Parsing error: Adjacent JSX elements must be wrapped in an enclosing tag. event i use react 16.12

Parsing error: Adjacent JSX elements must be wrapped in an enclosing tag. event I user react 16.12 const JSTeachers = () => { return [ <li key="1">Treasure</li> <li key="2">Guil</li> <li key="3">James</li> ]; } Please help

1 Answer

Mohamed El-Damarawy
Mohamed El-Damarawy
9,267 Points

I think you need to enclose the <li>s with a <ul>