S
S
SGRashid2020-01-19 21:04:13
GitHub
SGRashid, 2020-01-19 21:04:13

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;

Creates just an empty page on githubpages.
And without components, react is useless a little less, a little completely.
What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question