DEV Community

HairlessUncle
HairlessUncle

Posted on

React Dev Tools extension defect?

In short, I tried to write/copy a function component but mistakenly:

function Board (xIsNext, squares, onPlay){...}

The {} are missing, it is still treated as props and rendered as a component.

If you check it with this extension (React Dev Tool), it shows up in the props windows, which in fact, are function arguments, and causing problem later.

Image description
Not sure if this is expected/unexpected result. Kindly share your thoughts here. I'm a beginner btw.

Top comments (0)