React JS 實作(wallpappers-layout)學習筆記

Lisa Li
木棉草工作室
Published in
1 min readSep 25, 2023

開發時有些混淆的觀念及一些查詢的資料

2023.09.21

## React 結合 Tailwind

官方說明上建議不適合使用 CRA 開發,因為會無法使用 postCSS,如果是 React 的話建議使用 Next.js

## React 結合 Fontawesome

  • 安裝文件
  • 對應的 icon 會需要從不同的 Icon Packages 取出,我目前是使用 Indivisual Import
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faImages } from '@fortawesome/free-solid-svg-icons'
import { faFacebookF, faTwitter, faInstagram } from '@fortawesome/free-brands-svg-icons'
...

<FontAwesomeIcon icon={faInstagram}

## css text 90 degree rotate

## react import google fonts

2023.09.22

## react font awesome hover

## css br height

## css object-fit

## react-router-dom link target _blank

<Link to="route" target="_blank" rel="noopener noreferrer" />

## tailwind decoration underline animation

## Outlet context

## useCallback

## Tailwind CSS Spinner — Flowbite

## react cra memo

--

--