setOpeningFragment example


        
        //Closing tag         $closingNode = $this->createJSXNode(
            "JSXClosingFragment",
            $startClosingToken
        );
        $this->completeNode($closingNode);
        
        //Fragment         $node = $this->createJSXNode("JSXFragment", $startOpeningToken);
        $node->setOpeningFragment($openingNode);
        $node->setClosingFragment($closingNode);
        if ($children) {
            $node->setChildren($children);
        }
        return $this->completeNode($node);
    }
    
    /** * Parses a group of jsx children * * @return \Peast\Syntax\Node\Node[]|null */
Home | Imprint | This part of the site doesn't use cookies.