[React] Flowbite を使ってみる@準備回 | 心を無にして始める React

Flowbite
Tailwind CSS ベースのライブラリ。
Build websites even faster with components on top of Tailwind CSS
準備
まずは Tailwind CSS がインストールされたプロジェクトを用意します。
flowbite-react をインストール
npm install flowbite flowbite-react
設定
tailwind.config.js
の content と plugin に、 flowbite を追加します。
heroicons をインストール
Flowbite React Components の紹介でも使われている アイコン のライブラリです。
Beautiful hand-crafted SVG icons, by the makers of Tailwind CSS.
Available as basic SVG icons and via first-party React and Vue libraries.
React 向けのをインストールします。
npm install @heroicons/react
動かしてみる
とりあえず動かしてみます。
例によって App.js を編集します。
結果

はい、できました。