简体   繁体   English

React Icon 即使在删除后也会出现

[英]React Icon showing up even after removing it

I have removed the default React icon from the index.html file in create-react-app, but, it is still showing up.我已经从 create-react-app 的index.html文件中删除了默认的 React 图标,但它仍然显示。

Here is the code of index.html file这是index.html文件的代码

<!DOCTYPE html>
<html lang="en" class="h-full bg-gray-50">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta name="theme-color" content="#000000" />
    <meta
      name="description"
      content="Web site created using create-react-app"
    />
    <title>ResumeBuilder</title>
  </head>
  <body class="h-full">
    <noscript>You need to enable JavaScript to run this app.</noscript>
    <div id="root"></div>
    <!--
      This HTML file is a template.
      If you open it directly in the browser, you will see an empty page.

      You can add webfonts, meta tags, or analytics to this file.
      The build step will place the bundled scripts into the <body> tag.

      To begin the development, run `npm start` or `yarn start`.
      To create a production bundle, use `npm run build` or `yarn build`.
    -->
  </body>
</html>

选项卡标题中显示的图标

Folder structure of public of create-react-app: create-react-app public 的文件夹结构

文件夹结构

How can I remove it?我怎样才能删除它?

A simple shortcut could help: Ctrl+F5 will do a force cache purge for your page.一个简单的快捷方式可能会有所帮助:Ctrl+F5 将为您的页面执行强制缓存清除。

You should replace reactjs Icon with your website logo Icon您应该将 reactjs 图标替换为您的网站徽标图标

you can easily generate online a favicon there are many websites available like this - https://www.favicon-generator.org/您可以轻松地在线生成一个网站图标,有很多这样的网站 - https://www.favicon-generator.org/

Open the above site select your site logo and generate a favicon then download the zip file and extract the zip file and copy the logo icon from the generated folder and replace it with react js default icon.打开上面的站点 select 您的站点徽标并生成一个图标,然后下载 zip 文件并解压缩 zip 文件并从生成的文件夹中复制徽标图标并将其替换为 React js 默认图标。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM