diff --git a/solutions/day-02/index.html b/solutions/day-02/index.html index cb9573a..7c6ff8e 100644 --- a/solutions/day-02/index.html +++ b/solutions/day-02/index.html @@ -8,7 +8,32 @@
+ + + + + // To get the root element from the HTML document + const rootElement = document.querySelector('.root') + + // JSX element + const header = ( +
+

Welcome to 30 Days Of React

+

Getting Started React

+

JavaScript Library

+

Asabeneh Yetayeh

+ Oct 2, 2020 +
+ ) + // we render the JSX element using the ReactDOM package + // ReactDOM has the render method and the render method takes two arguments + ReactDOM.render(header, rootElement) + + \ No newline at end of file