R
Reactiflux

help-threads-react

venus – 07-03 Nov 21

Vvenus11/21/2022
I never knew that I can use the function inside its declaration. I would like to know more about it. Does it have some term in JS docs?
const childNodes = (child) => {
return child.map((childNode) => (
<div>
<div> {childNode.title} </div>
{/* ??? */}
{childNodes(childNode.children)}
</div>
));
};
const childNodes = (child) => {
return child.map((childNode) => (
<div>
<div> {childNode.title} </div>
{/* ??? */}
{childNodes(childNode.children)}
</div>
));
};
UUUnknown User11/21/2022
Message Not Public
Sign In & Join Server To View
EEvokeMe11/21/2022
Recursion
UUUnknown User11/21/2022
Message Not Public
Sign In & Join Server To View

Looking for more? Join the community!

R
Reactiflux

help-threads-react

Join Server