Hello there!
I have been trying to render this component without much success. I have re-checked my files and they’re fine, unless I am missing something. Here is the code, I’ll appreciate some help.
Component code
import React from "react";
import styles from './styles.module.css'
function Landing() {
return(
<nav className={styles.nav}>
<header>Game Wave</header>
<ul>
<li>Login</li>
<li>Cart</li>
<li>Contacts</li>
</ul>
</nav>
);
}
export default Landing;
Entry point code.
import React from "react";
import { createRoot } from "react-dom/client";
import Landing from "./Landingpage";
const root = createRoot(document.getElementById("root"));
root.render(<Landing />);
Here is how my files are arranged.