-- 이 .js 가 JSX 를 쓰나 (CRA → Vite 로 옮길 때 .jsx 로 바꿀 파일 고르기)
isReactComponent :: String -> Bool
isReactComponent = any isJSXIdentifier . universe -- AST 어딘가에 JSXIdentifier 가 있나
. parseJSX Module Latest -- acorn.Parser.extend(acorn-jsx)
JSX 문자열
- https://github.com/TroyAlford/react-jsx-parser
- https://github.com/FormidableLabs/react-live
- https://github.com/seek-oss/playroom
프로젝트 파일 — iframe 안에서 컴파일·렌더, 의존성은 esm.sh
번들 URL