We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
function App() { const defaultFiles = { '/src/app.jsx': ` import React from 'react'; import ReactDOM from 'react-dom'; import './index.css';
(async () => { const {Button} = await import('./Button.jsx'); const root = document.getElementById('root'); ReactDOM.render((
const App = () => { console.log(add(1, 2)); };
export default App; , '/src/@index/cc.ts': export function add(a, b) { return a + b; }
, '/src/@index/cc.ts':
export function minus(a, b) { return a - b; } ` } return ( <div style={{ width: '800px', height: '600px' }}> <MultiEditor
defaultFiles={defaultFiles} options={{ fontSize: 14, automaticLayout: true, }} /> </div>
) }
export default App;
The text was updated successfully, but these errors were encountered:
No branches or pull requests
function App() {
const defaultFiles = {
'/src/app.jsx': `
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
(async () => {
const {Button} = await import('./Button.jsx');
const root = document.getElementById('root');
ReactDOM.render((
const App = () => {
console.log(add(1, 2));
};
export default App;
, '/src/@index/cc.ts':
export function add(a, b) {
return a + b;
}
export function minus(a, b) {
return a - b;
}
`
}
return (
<div style={{ width: '800px', height: '600px' }}>
<MultiEditor
)
}
export default App;
The text was updated successfully, but these errors were encountered: