I am building MERN project and in react
part I got:
- src/ - components/ - AdminPage/ - admin-page.html - admin-page.css - admin-page.js
So the problem is in App.js
:
How could I use regular html, css, js and not ``react in <AdminPage/>
component:
import React from 'react';import { BrowserRouter as Router, Switch, Route } from 'react-router-dom';import HomePage from './components/HomePage/HomePage.component';import LoginPage from '../src/components/LoginPage/LoginPage.component';import RegisterPage from '../src/components/RegisterPage/RegisterPage.component';import UserPage from '../src/components/UserPage/UserPage.component';import AdminPage from '../src/components/AdminPage/AdminPage.component';
Is there way NOT to use the classic way likeAdminPage.component.jsx
and from there export the component; how could I do that with regular html, css and js?