From 0b40b17aec1b347c0d2a9052fbc322c58dc4ae93 Mon Sep 17 00:00:00 2001 From: gpt-anurag Date: Tue, 26 Jul 2022 11:13:28 +0530 Subject: [PATCH] New: Added js and css --- practice/index.html | 37 +++++++++++++++++++++++++++++++++++++ practice/main.js | 14 ++++++++++++++ practice/style.css | 0 3 files changed, 51 insertions(+) create mode 100644 practice/index.html create mode 100644 practice/main.js create mode 100644 practice/style.css diff --git a/practice/index.html b/practice/index.html new file mode 100644 index 0000000..479201a --- /dev/null +++ b/practice/index.html @@ -0,0 +1,37 @@ + + + + + + + React App + + + + + + + + + + + + + +
+ + diff --git a/practice/main.js b/practice/main.js new file mode 100644 index 0000000..9372cd7 --- /dev/null +++ b/practice/main.js @@ -0,0 +1,14 @@ +import React from "react"; +import { ReactDOM } from "react-dom"; + +// To get the root element from the HTML document +const rootElement = document.querySelector(".root"); + +// JSX element, header +const header =

Welcome to react

; + +// JSX element, app +const app =
{header}
; + +// we render the JSX element using the ReactDOM package +ReactDOM.render(app, rootElement); diff --git a/practice/style.css b/practice/style.css new file mode 100644 index 0000000..e69de29