使用create react app
命令获得的React
项目会有默认的页面标题与图标,怎么修改呢?html
1、修改图标:react
build
文件夹的index.html
<link rel="shortcut icon" href="/favicon.ico"/>
<link rel="shortcut icon" href="/flower.png"/>
flower.png
是本身直接放进build文件夹里的,图标最好是32*32的尺寸(我都是在Iconfont
这个网站找的~)2、修改标题:服务器
index.html
<title>React App</title>
<title>你要的标题名字</title>
这样改好再扔到服务器上就能达到效果啦,有问题的话欢迎一块儿讨论~~~app