جواب «Two Lines» چالش 3 از جلسهی 1
سؤال
داخل div فقط یک تیتر هست. زیر تیتر یک خط p با متن I love coding اضافه کن.
راهنما
بعد از خط <h1>Sara</h1> و قبل از </div> بنویس: <p>I love coding</p>
یک جواب درست
<style>
body { font-family: sans-serif; text-align: center; padding: 16px; }
button, input, select { font-size: 16px; min-height: 40px; margin: 4px; }
</style>
<div id="root" dir="ltr"></div>
<script type="text/jsx">
import { createRoot } from "react-dom/client";
function App() {
return (
<div>
<h1>Sara</h1>
<p>I love coding</p>
</div>
);
}
createRoot(document.getElementById("root")).render(<App />);
</script>
اول خودت امتحان کن؛ جوابهای دیگر هم قبول است. برگرد و خودت حلش کن