Skip to content
Advertisement

JSX expressions must have one parent element.ts(2657) In Return statement

I’m trying to build a Tic Tac Toe app that will let me choose 3×3, 4×4 and 5×5 grid and currently i’m stuck on 3×3 grid and I’m getting ‘JSX expressions must have one parent element.ts(2657)’

JavaScript

I tried adding another view element but it didn’t work. I will be gratefull to hear your suggestions.

Advertisement

Answer

It’s a appears that I didn’t have to use that return statement.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement