diff --git a/docusaurus/docs/title-and-meta-tags.md b/Iwacubusiness.online similarity index 58% rename from docusaurus/docs/title-and-meta-tags.md rename to Iwacubusiness.online index 1bea575503b..0eb5c2406c6 100644 --- a/docusaurus/docs/title-and-meta-tags.md +++ b/Iwacubusiness.online @@ -1,4 +1,37 @@ +- {withdrawStatus && ({withdrawStatus})} + + + ` tag in it to change the title from “React App” to anything else. + +Note that normally you wouldn’t edit files in the `public` folder very often. For example, [adding a stylesheet](adding-a-stylesheet.md) is done without touching the HTML. + +If you need to dynamically update the page title based on the content, you can use the browser [`document.title`](https://developer.mozilla.org/en-US/docs/Web/API/Document/title) API. For more complex scenarios when you want to change the title from React components, you can use [React Helmet](https://github.com/nfl/react-helmet), a third party library. + +If you use a custom server for your app in production and want to modify the title before it gets sent to the browser, you can follow advice in [this section](#generating-dynamic-meta-tags-on-the-server). Alternatively, you can pre-build each page as a static HTML file which then loads the JavaScript bundle, which is covered [here](pre-rendering-into-static-html-files.md). + +## Generating Dynamic `` Tags on the Server + +Since Create React App doesn’t support server rendering, you might be wondering how to make `` tags dynamic and reflect the current URL. To solve this, we recommend to add placeholders into the HTML, like this: + +```html + + + + + + + +``` + +Then, on the server, regardless of the backend you use, you can read `index.html` into memory and replace `__OG +- id: title-and-meta-tags title: Title and Meta Tags sidebar_label: Title & Meta Tags