Varun Kumar
Varun Kumar

Reputation: 1

This is my app.jsx file and when I run the file it is showing a plain text "Click me" instead of a button

import React from 'react';
import './App.css'
 
function App() {
  return (
    <div>
      <button>click me</button>
    </div>
  )
}

export default App

The app.css is empty. I tried clearing the browser cache and when I create a new react app using npm create vit@latest, the new app works fine.

Upvotes: -2

Views: 42

Answers (0)

Related Questions