๐ด Introduction
โช React์์ ์น์ฌ์ดํธ <title>์ ๋์ ์ผ๋ก ๋ณ๊ฒฝํ ์ ์๋๋ก ํด์ค๋ค.
๐ Official
๐ก Install
npm i react-helmet
๐ข Usage
// [ Usage Component ]
import { Helmet } from "react-helmet";
const Coin = () => {
return (
<Helmet>
<title>{state?.name ? state.name : loading ? "Loading..." : infoData?.name}</title>
</Helmet>
);
}
'React > Library' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[ React ] redux (0) | 2022.08.02 |
---|---|
[ React ] react-router-dom (0) | 2022.07.31 |
[ React ] recoil (0) | 2022.07.30 |
[ React ] apexchart (0) | 2022.07.30 |
[ React ] @tanstack/react-query (0) | 2022.07.30 |