You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test('React.renderToString inside a function',async({ is })=>{constsrc=`import React from 'react';import ReactDOMServer from 'react-dom/server';function foo() { const A = () => <div/>; ReactDOMServer.renderToString(<A/>);};`constesx=`const esx = require('esx')();import React from 'react';import ReactDOMServer from 'react-dom/server';function foo() { const A = () => esx \`<div/>\`; esx.renderToString("A", A) \`<A/>\`;};`is(convert(src),esx)})
Input
Output
The text was updated successfully, but these errors were encountered: