下記のコードを参考に実装しました
カテゴリーアーカイブ: React
axios.createのテスト
参考記事をベースに作成しました 参考記事 Jestでデフォルト値設定済みのaxiosインスタンスに対するMockテスト
React test
これめっちゃいいかも!!!!https://qiita.com/Hitomi_Nagano/items/df30da9086b705532aca http://5.9.10.113/67035315/how-to-tes …
React Private Routeのテスト
https://gist.github.com/Aebrathia/0dc01cc86268b194e39ba567ec38dd9a https://gist.github.com/abohannon/cca2dd998 …
React Redux テストのコード
参考記事 https://github.com/vercel/next.js/issues/8145#issuecomment-515821572
error @tailwindcss/postcss7-compat@2.1.2: The engine “node” is incompatible with this module. Expected version “>=12.13.0”. Got “10.24.0”
で解決できました 参考記事
Error: Could not find router reducer in state tree, it must be mounted under “router”
connected react routerとhistoryを利用していたところタイトルのエラーが発生 package.jsonのhistoryを5.0.0から下記に変更したら解消できました stateをlocalに保存 …
“Error: Could not find router reducer in state tree, it must be mounted under “router”” の続きを読む
React + ReduxでレフレッシュしてもStateを保持する方法
こちらの実装でできました 参考記事
nextjsでサイトマップ作る方法
pages/sitemap.xml.tsx を作成して下記の内容で構築しました ちなみにですが、public/sitemap.xml でもいけたので、下記のようにあまりページを更新しない予定→手動で管理であればpubli …
Treating warnings as errors because process.env.CI = true.
vercelにreactをデプロイしたらタイトルのエラー発生 buildのコマンドを変更したら動きました 参考記事 Treating warnings as errors because process.env.CI = …
“Treating warnings as errors because process.env.CI = true.” の続きを読む