reactjs / react-router-tutorial

5.52k stars 1.75k forks source link

Error: Location "lessons/11-productionish-server/index.html" did not match any routes #262

Open catliuqh opened 7 years ago

catliuqh commented 7 years ago

I want people visit my project via "http://www.*****.com"

so i use the following to output: qq 20161118173951

then i import this bundle.js in the html, code as follow:

<!doctype html public="storage">
<html>
<meta charset=utf-8/>
<title>My First React Router App</title>
<link rel=stylesheet href=index.css>
<div id=app></div>
<script src="bundle.js"></script>

but when i open this html in the browser, it send this error.I want to know why and how to resolve this question

qq 20161118174344

Andersos commented 7 years ago

You probably want to use a starter kit or a boilerplate rather than this lesson to start your site. Try googling react router starter kit and pick one you think have the parts you need.

From your error it looks like your pathing is wrong.