Answer the question
In order to leave comments, you need to log in
React and GitHubPages component issues?
There are quite a few articles like https://dev.to/yuribenjamin/how-to-deploy-react-ap... describing how to use react and gh-pages.
And everything is fine ... until you start using components.
for example
import React from 'react';
import { BrowserRouter, Route, Switch } from 'react-router-dom';
import Main from './components/Main/Main';
import './App.css';
import TestPage from "./components/TestPage/TestPage";
import MainGHPages from "./components/MainGHPages/MainGHPages";
function App() {
return (
<MainGHPages/>
);
}
export default App;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question