INNER CODE UNIT · JavaScript

child

grapp-dev/stacks · plugin/index.js:70

          let child = path.node.children.find(child => {
            return (
              child.type === 'JSXElement' ||
              child.type === 'JSXFragment' ||
              child.type === 'JSXExpressionContainer'
            );
          });

          if (!child) {
            return;
          }

          if (child.type === 'JSXExpressionContainer') {
            child = child.expression;
          }

          const conditionalExpression = t.conditionalExpression(
            logicalExpression,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…