HackYourFuture-CPH / simply-name.it

Final Project for Class17
MIT License
3 stars 1 forks source link

Fix welcome route #274

Closed NatsGt closed 3 years ago

NatsGt commented 3 years ago

Description

Set welcome page to the home route "/"

Fixes #273

How to test?

npm run dev http://localhost:3000/

Checklist

senner007 commented 3 years ago

This won't work properly. You can't go to welcome after login

Instead if you revert the commit and change the contents Home Component to this


import React from 'react';
import { BrowserRouter as Router, Route, Switch, Redirect } from 'react-router-dom';

export const Home = () => <Redirect to='/welcome'  />

or /profile

senner007 commented 3 years ago

@NatsGt Build fail. Remove the Home.test