Open16
Next.js / React Hooks学習帳

library
react-scroll
navigationでページ内smoothScrollなどを作るときに有用
swiper.js
スライダーの有名ライブラリ。各種FW対応しておりReactコンポーネント化されているものを利用できる。
react-responsive
レスポンシブ対応のブレイクポイントをHooksを使って設定できる。
swiper.jsと組み合わせてブレイクポイント毎に画面表示枚数を変更するなどの対応が可能
TailwindCSSのBreakpoint
https://tailwindcss.com/docs/responsive-design#overview

SVG
tsx内にSVGを書いた場合にconsoleでエラーが出るため kebab-case
を camelCase
に書き換える必要がある

VSCode

TailwindCSS

Stylelint

OGP

lottie
カスタムアニメーション作成でAfterEffectsを使わない場合アニメーションは限られるがlottiefiles経由で作れる。
react-lottie
react向けのlottieライブラリ。(3年ぐらいメンテされてない)
lottie-react
lottie-react-web

SSG

microcms

環境変数

SWR

getStaticProps

ConditionalWrapper

context API

React.FC

タグ変換
const Value = (value || "").split(/(\n)/).map((item, index) => {
return <>{item.match(/\n/) ? <br /> : item}</>;
});