Greetings;
Can someone please help me with a hint on the below inquiry.
I started the JSX React challenges couple days ago and it has been interesting to explore other extensions of JavaScript and the CSS(SCSS), but I am having problem at this point displaying the JSX React Components on the Webpage(live sever). Can someone please review the link between reactIndex.html and reactJsx.jsx and tell what I am missing
<!DOCTYPE html>
<html lang="eng">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compitable" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>React Exercise</title>
<link rel="stylesheet" href="./reactJsx.scss"/>
</head>
<body>
<main class="general-container">
<div class="exercise-work" id="exercise"></div>
<div class="students" id="student-supply"></div>
<div id="type-of-fruits" class="fruits"></div>
</main>
<script rel="script-sheet" src="./reactJsx.jsx"></script>
</body>
</html>
JSX
function GreenFruit() {
return (
<div>
<h1>Green Fruits</h1>
<ul>
<li>Plum</li>
<li>Apple</li>
<li>Breadfruit</li>
<li>Tomatoes</li>
<li>Cucumber</li>
<li>Watermelon</li>
</ul>
</div>
);
};
function YellowFruit() {
return(
<div>
<h1>Yellow Fruits</h1>
<ul>
<li>Bananas</li>
<li>Goden Plum</li>
<li>Grapefruit</li>
<li>Zorzor</li>
<li>Vahun Plum</li>
<li>Guava</li>
</ul>
</div>
);
};
class Fruits extends React.Component {
constructor(prop) {
super(prop)
}
render() {
return (
<div>
<h1>Types of Fruits</h1>
<GreenFruit />
<br />
<YellowFruit />
</div>
);
}
};
ReactDOM.render(<Fruits />, document.getElementById("type-of-fruits"));
Your help will highly be appreciated.