MCPcopy Index your code
hub / github.com/react/react / parse

Function parse

scripts/shared/__tests__/evalToString-test.js:12–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10const parser = require('@babel/parser');
11
12const parse = source => parser.parse(`(${source});`).program.body[0].expression; // quick way to get an exp node
13
14const parseAndEval = source => evalStringConcat(parse(source));
15

Callers 1

parseAndEvalFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected