Multi-Backend Placeholder Tutorial
A hidden placeholder tutorial used to exercise per-step tutorial backends.
Python Placeholder 1
This placeholder step verifies that a Python step can use the output panel.
print("Python placeholder one")
React Placeholder 1
This placeholder step verifies that a React step can use the live preview panel.
main {
max-width: 48rem;
margin: 0 auto;
padding: 2rem;
}
.placeholder-card {
border: 2px solid #2774ae;
border-radius: 6px;
padding: 1rem;
}
function App() {
return (
<main>
<section className="placeholder-card" aria-labelledby="react-one-title">
<h1 id="react-one-title">React placeholder one</h1>
<p>This preview is rendered by the React backend.</p>
</section>
</main>
);
}
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(<App />);
Node.js Placeholder 1
This placeholder step verifies that a Node.js step can return to the output panel.
console.log("Node placeholder one");
React Placeholder 2
This placeholder step verifies that switching back to React rebuilds the preview.
main {
max-width: 48rem;
margin: 0 auto;
padding: 2rem;
}
.placeholder-card {
border: 2px solid #2e7d32;
border-radius: 6px;
padding: 1rem;
}
function App() {
return (
<main>
<section className="placeholder-card" aria-labelledby="react-two-title">
<h1 id="react-two-title">React placeholder two</h1>
<p>This preview is rendered after leaving Node.js.</p>
</section>
</main>
);
}
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(<App />);
Python Placeholder 2
This placeholder step verifies that switching back to Python restores the output panel.
print("Python placeholder two")
Node.js Placeholder 2
This placeholder step verifies that a later Node.js step remains usable.
console.log("Node placeholder two");
Step 6 — Knowledge Check
Min. score: 80%1. Which backend runs this final placeholder step?
This step uses the WebContainer Node.js backend, so its starter file runs with Node and writes to the output panel.