بتل کد Battle Codeدارد باز می‌شود…

Two Lines چالش 3 از جلسه‌ی 1، متوسط

داخل div فقط یک تیتر هست. زیر تیتر یک خط p با متن I love coding اضافه کن.

<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>
    </div>
  );
}

createRoot(document.getElementById("root")).render(<App />);
</script>

راهنما و جواب این چالش · برگشت به درس جلسه‌ی 1: اولین قطعه · چالش بعدی: A Button

بیشتر بخوان: جاوااسکریپت چیست؟ از دکمه‌ی وب تا Node.js