Home > Mobile >  Why is my component not loading through Vite
Why is my component not loading through Vite

Time:07-14

I am building a React project with Vite. I was using a tutorial from an article that I found at https://www.digitalocean.com/community/tutorials/how-to-set-up-a-react-project-with-vite.

I followed the tutorial as described, however, my "greeting" component will not load.

import React from 'react';

function greeting() {
  return (
    <div>
      Hello World!
    </div>
  );
}

export default greeting;
import React from 'react';
import greeting from "./greeting";


function App() {
  return (
    <main>
      React⚛️   Vite⚡   Replit           
  • Related