koichi-omae / fwywd-task-lv1 Goto Github PK
View Code? Open in Web Editor NEWHome Page: fwywd-task-lv1.vercel.app
Home Page: fwywd-task-lv1.vercel.app
primary-xl
などはばらした方が良いでしょう。
理由としては Tailwind CSS の標準ではなく、他の人がプロジェクトに入ったときに可読性を下げてしまうためです(チームを前提に理解のコストも考慮していきましょう)
逆に btn-sm
のようにボタンは共通項を設けて、btn-green
などをオプションでつけると良いでしょう。
img
というディレクトリに格納していて素晴らしいですね!
意外とここに手を抜いてしまうことがあるので public/img/**
とできているのは良いことです!
ファイル名が Camel や kebase-case の混在がありましたので、ここを統一しましょう!
基本的には kebab-case で良いのでは無いかと思います。
SWR は Client Side Rendering (CSR) でデータを毎度フェッチしてきます。
そのため、クライアント側でどこの API を取ってきているかがわかってしまいます。
Stein では URL からある程度使い方が想像できてしまうため、SSR や ISR で API のフェッチ先を隠すか、pages/api に入れて URL を隠すなどの工夫が必要でしょう。
今回の要件であれば ISR がベストでしょう。
ここは少し惜しいですね!
Atomic Design では atom
, molecule
, organism
, template
, page
となっていますが、現実のプロジェクトではもう少しうまく分けたほうが良いでしょう。
例えば、私が最近組んでいる中でたどり着いた結論は以下のとおりです。
atom
で CSS レベルの実装molecule
で必要最低限必要な要素の組み合わせ(多くのプロジェクトで共通して利用するもの)project
で Presentational/Container Component の実装(プロジェクト名は適宜合わせる)common
は今回使用しませんが、必要に応じて共通プロジェクトで利用するコンポーネントを格納すると良いでしょう。Next.js の公式サイトを確認して、設定の変更がないかを確認しておきましょう!
Jest や Babel など、これまで結構変更が加わってきました。
リリース後にあとから変更することは時間経過とともに難しくなってくるため、リリース前に必ずチェックしておきましょう!
template
として利用するものは特にこの傾向があります。
pages
の実装に不必要な引数が含まれていたため、この点の複雑性を解決できるでしょう。
バッチリでした!
こちらもバッチリですね!
切り分けが意識できていて素晴らしいです!
こちらもバッチリでした!
知っているか知らないかの差ですが、こちらを読んでみましょう!
各コンポーネントの記載漏れなどを考慮して、簡単で良いのでテストを書いておきましょう。
バッチリですね!流石です!
バッチリでした!
※ 確認後に Close していただいて大丈夫です。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.