前回はフォームと検索機能を学び、テキスト入力でリアルタイムに絞り込む画面が作れるようになりました。 今回はいよいよfetch APIとDjangoの連携です。今までsetTimeoutとダミーデータで代用していた部分を、本物のDjango REST Framework製APIに差し替えます。
Giving functions easy-to-understand names is the foundation of readable code. However, even if you follow the rule of 'starting with a verb' and name a function something like get_user_data(), ...
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する