Reactiflux
Reactiflux

help-threads-react

Root Question Message

venus
venus11/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>
    ));
  };
Message Not Public

Sign In and Join Server To See

11/21/2022
EvokeMe
EvokeMe11/21/2022
Recursion
ContactFrequently Asked QuestionsJoin The DiscordBugs & Feature RequestsTerms & Privacy