{"id":57221,"date":"2023-04-30T13:00:08","date_gmt":"2023-04-30T07:30:08","guid":{"rendered":"https:\/\/2thenew.online\/blog\/?p=57221"},"modified":"2023-05-18T13:02:57","modified_gmt":"2023-05-18T07:32:57","slug":"tailwind-css-setup-tailwind-with-react","status":"publish","type":"post","link":"https:\/\/2thenew.online\/blog\/tailwind-css-setup-tailwind-with-react\/","title":{"rendered":"Tailwind CSS: Setup Tailwind With React"},"content":{"rendered":"<h1>Setup tailwind with react<\/h1>\n<h3>1. create your project folder<\/h3>\n<p>Open the terminal and navigate your created project, and then run the below command<br \/>\nnpx create-react-app react-demo.<\/p>\n<p>Once reactdemo app has been created,<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-57214 size-large\" src=\"\/blog\/wp-ttn-blog\/uploads\/2023\/04\/react-demo-1024x142.png\" alt=\"Blog image\" width=\"625\" height=\"87\" srcset=\"https:\/\/2thenew.online\/blog\/wp-content\/uploads\/2023\/04\/react-demo-1024x142.png 1024w, https:\/\/2thenew.online\/blog\/wp-content\/uploads\/2023\/04\/react-demo-300x42.png 300w, https:\/\/2thenew.online\/blog\/wp-content\/uploads\/2023\/04\/react-demo-768x107.png 768w, https:\/\/2thenew.online\/blog\/wp-content\/uploads\/2023\/04\/react-demo-624x87.png 624w, https:\/\/2thenew.online\/blog\/wp-content\/uploads\/2023\/04\/react-demo.png 1344w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/p>\n<p>&gt;&gt; go to the react-demo folder<\/p>\n<p>&gt;&gt; run the &#8220;npm start&#8221; command<\/p>\n<h3><strong>2. Install Tailwind CSS and generate the configuration file<\/strong><\/h3>\n<p>&gt;&gt; npm install -D tailwindcss<br \/>\n&gt;&gt; npx tailwindcss init<\/p>\n<p><strong>Your folder and package.json file should look like this in your VSCode:\u200c<br \/>\n<\/strong><\/p>\n<p><strong><br \/>\n<\/strong><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-57215 size-full\" src=\"\/blog\/wp-ttn-blog\/uploads\/2023\/04\/react-demo1.png\" alt=\"Blog image\" width=\"406\" height=\"395\" srcset=\"https:\/\/2thenew.online\/blog\/wp-content\/uploads\/2023\/04\/react-demo1.png 406w, https:\/\/2thenew.online\/blog\/wp-content\/uploads\/2023\/04\/react-demo1-300x292.png 300w, https:\/\/2thenew.online\/blog\/wp-content\/uploads\/2023\/04\/react-demo1-24x24.png 24w, https:\/\/2thenew.online\/blog\/wp-content\/uploads\/2023\/04\/react-demo1-48x48.png 48w\" sizes=\"auto, (max-width: 406px) 100vw, 406px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-57216 size-full\" src=\"\/blog\/wp-ttn-blog\/uploads\/2023\/04\/react-demo2.png\" alt=\"Blog image\" width=\"866\" height=\"533\" srcset=\"https:\/\/2thenew.online\/blog\/wp-content\/uploads\/2023\/04\/react-demo2.png 866w, https:\/\/2thenew.online\/blog\/wp-content\/uploads\/2023\/04\/react-demo2-300x185.png 300w, https:\/\/2thenew.online\/blog\/wp-content\/uploads\/2023\/04\/react-demo2-768x473.png 768w, https:\/\/2thenew.online\/blog\/wp-content\/uploads\/2023\/04\/react-demo2-624x384.png 624w\" sizes=\"auto, (max-width: 866px) 100vw, 866px\" \/><\/p>\n<h3><strong>3. Configure your template paths<\/strong><\/h3>\n<p>Add the paths to all of your template files in your tailwind.config.js file.<\/p>\n<pre>\/** @type {import('tailwindcss').Config} *\/\r\nmodule.exports = {\r\ncontent: [\r\n\".\/src\/**\/*.{js,jsx,ts,tsx}\",\r\n],\r\ntheme: {\r\nextend: {},\r\n},\r\nplugins: [],\r\n}<\/pre>\n<p><strong>your file should now look like this:<br \/>\n<\/strong><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-57217 size-large\" src=\"\/blog\/wp-ttn-blog\/uploads\/2023\/04\/react-demo3-1024x304.png\" alt=\"Blog image\" width=\"625\" height=\"186\" srcset=\"https:\/\/2thenew.online\/blog\/wp-content\/uploads\/2023\/04\/react-demo3-1024x304.png 1024w, https:\/\/2thenew.online\/blog\/wp-content\/uploads\/2023\/04\/react-demo3-300x89.png 300w, https:\/\/2thenew.online\/blog\/wp-content\/uploads\/2023\/04\/react-demo3-768x228.png 768w, https:\/\/2thenew.online\/blog\/wp-content\/uploads\/2023\/04\/react-demo3-624x185.png 624w, https:\/\/2thenew.online\/blog\/wp-content\/uploads\/2023\/04\/react-demo3.png 1295w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/p>\n<h3><strong>4. Add the Tailwind directives to your CSS<\/strong><\/h3>\n<p>Add the @tailwind directives for each of Tailwind\u2019s layers to your .\/src\/index.css file.<\/p>\n<p>@tailwind base;<br \/>\n@tailwind components;<br \/>\n@tailwind utilities;<\/p>\n<p><strong>your file should now look like this:<br \/>\n<\/strong><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-57218 size-large\" src=\"\/blog\/wp-ttn-blog\/uploads\/2023\/04\/react-demo4-1024x392.png\" alt=\"Blog image\" width=\"625\" height=\"239\" srcset=\"https:\/\/2thenew.online\/blog\/wp-content\/uploads\/2023\/04\/react-demo4-1024x392.png 1024w, https:\/\/2thenew.online\/blog\/wp-content\/uploads\/2023\/04\/react-demo4-300x115.png 300w, https:\/\/2thenew.online\/blog\/wp-content\/uploads\/2023\/04\/react-demo4-768x294.png 768w, https:\/\/2thenew.online\/blog\/wp-content\/uploads\/2023\/04\/react-demo4-624x239.png 624w, https:\/\/2thenew.online\/blog\/wp-content\/uploads\/2023\/04\/react-demo4.png 1290w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/p>\n<p><strong>Writing CSS:\u00a0<\/strong><\/p>\n<p>You can start using Tailwind\u2019s utility classes to style your content. Navigate to your App.jsx file, where you should see this below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-57219 size-large\" src=\"\/blog\/wp-ttn-blog\/uploads\/2023\/04\/react-demo5-1024x372.png\" alt=\"Blog image\" width=\"625\" height=\"227\" srcset=\"https:\/\/2thenew.online\/blog\/wp-content\/uploads\/2023\/04\/react-demo5-1024x372.png 1024w, https:\/\/2thenew.online\/blog\/wp-content\/uploads\/2023\/04\/react-demo5-300x109.png 300w, https:\/\/2thenew.online\/blog\/wp-content\/uploads\/2023\/04\/react-demo5-768x279.png 768w, https:\/\/2thenew.online\/blog\/wp-content\/uploads\/2023\/04\/react-demo5-624x227.png 624w, https:\/\/2thenew.online\/blog\/wp-content\/uploads\/2023\/04\/react-demo5.png 1295w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/p>\n<p>Output<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-57220 size-large\" src=\"\/blog\/wp-ttn-blog\/uploads\/2023\/04\/react-demo6-1024x517.png\" alt=\"Blog image\" width=\"625\" height=\"316\" srcset=\"https:\/\/2thenew.online\/blog\/wp-content\/uploads\/2023\/04\/react-demo6-1024x517.png 1024w, https:\/\/2thenew.online\/blog\/wp-content\/uploads\/2023\/04\/react-demo6-300x152.png 300w, https:\/\/2thenew.online\/blog\/wp-content\/uploads\/2023\/04\/react-demo6-768x388.png 768w, https:\/\/2thenew.online\/blog\/wp-content\/uploads\/2023\/04\/react-demo6-624x315.png 624w, https:\/\/2thenew.online\/blog\/wp-content\/uploads\/2023\/04\/react-demo6.png 1283w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/p>\n<p><strong>Note:<\/strong> if your tailwind CSS property is not reflected on the application, restart your react app.<\/p>\n<h3>Conclusion:<\/h3>\n<p>Now you can develop your responsive application with react and tailwind CSS. For more exploration, you can go through <a href=\"https:\/\/tailwindcss.com\/docs\/installation\">here. <\/a>Thanks for reading this article; I hope you will find this helpful.<\/p>\n<div class=\"ap-custom-wrapper\"><\/div><!--ap-custom-wrapper-->","protected":false},"excerpt":{"rendered":"<p>Setup tailwind with react 1. create your project folder Open the terminal and navigate your created project, and then run the below command npx create-react-app react-demo. Once reactdemo app has been created, &gt;&gt; go to the react-demo folder &gt;&gt; run the &#8220;npm start&#8221; command 2. Install Tailwind CSS and generate the configuration file &gt;&gt; npm [&hellip;]<\/p>\n","protected":false},"author":1546,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":14,"footnotes":""},"categories":[3602,3429,3038],"tags":[4862,4860,5199],"class_list":["post-57221","post","type-post","status-publish","format-standard","hentry","category-drupal","category-front-end-development","category-react-js","tag-drupal","tag-front-end-development","tag-react-js-technology"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Setup tailwind with react 1. create your project folder Open the terminal and navigate your created project, and then run the below command npx create-react-app react-demo. Once reactdemo app has been created, &gt;&gt; go to the react-demo folder &gt;&gt; run the &quot;npm start&quot; command 2. Install Tailwind CSS and generate the configuration file &gt;&gt; npm\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Mohd Ebrahim\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/2thenew.online\/blog\/tailwind-css-setup-tailwind-with-react\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"blog\" \/>\n\t\t<meta property=\"og:title\" content=\"Tailwind CSS: Setup Tailwind With React | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"Setup tailwind with react 1. create your project folder Open the terminal and navigate your created project, and then run the below command npx create-react-app react-demo. Once reactdemo app has been created, &gt;&gt; go to the react-demo folder &gt;&gt; run the &quot;npm start&quot; command 2. Install Tailwind CSS and generate the configuration file &gt;&gt; npm\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/2thenew.online\/blog\/tailwind-css-setup-tailwind-with-react\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Tailwind CSS: Setup Tailwind With React | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Setup tailwind with react 1. create your project folder Open the terminal and navigate your created project, and then run the below command npx create-react-app react-demo. Once reactdemo app has been created, &gt;&gt; go to the react-demo folder &gt;&gt; run the &quot;npm start&quot; command 2. Install Tailwind CSS and generate the configuration file &gt;&gt; npm\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/tailwind-css-setup-tailwind-with-react\\\/#article\",\"name\":\"Tailwind CSS: Setup Tailwind With React | TO THE NEW Blog\",\"headline\":\"Tailwind CSS: Setup Tailwind With React\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/mohd-ebrahim\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"\\\/blog\\\/wp-ttn-blog\\\/uploads\\\/2023\\\/04\\\/react-demo-1024x142.png\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/tailwind-css-setup-tailwind-with-react\\\/#articleImage\"},\"datePublished\":\"2023-04-30T13:00:08+05:30\",\"dateModified\":\"2023-05-18T13:02:57+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/tailwind-css-setup-tailwind-with-react\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/tailwind-css-setup-tailwind-with-react\\\/#webpage\"},\"articleSection\":\"Drupal, Front End Development, React.js, Drupal, Front End Development, React.js Technology\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/tailwind-css-setup-tailwind-with-react\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/react-js\\\/#listItem\",\"name\":\"React.js\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/react-js\\\/#listItem\",\"position\":2,\"name\":\"React.js\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/react-js\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/tailwind-css-setup-tailwind-with-react\\\/#listItem\",\"name\":\"Tailwind CSS: Setup Tailwind With React\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/tailwind-css-setup-tailwind-with-react\\\/#listItem\",\"position\":3,\"name\":\"Tailwind CSS: Setup Tailwind With React\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/react-js\\\/#listItem\",\"name\":\"React.js\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/mohd-ebrahim\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/mohd-ebrahim\\\/\",\"name\":\"Mohd Ebrahim\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/tailwind-css-setup-tailwind-with-react\\\/#authorImage\",\"url\":\"https:\\\/\\\/newersworld-static.tothenew.net\\\/live\\\/social\\\/user\\\/profilePicture\\\/e3c20c6a-2398-4fce-865a-0572da49b7c8.jpeg\",\"width\":96,\"height\":96,\"caption\":\"Mohd Ebrahim\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/tailwind-css-setup-tailwind-with-react\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/tailwind-css-setup-tailwind-with-react\\\/\",\"name\":\"Tailwind CSS: Setup Tailwind With React | TO THE NEW Blog\",\"description\":\"Setup tailwind with react 1. create your project folder Open the terminal and navigate your created project, and then run the below command npx create-react-app react-demo. Once reactdemo app has been created, >> go to the react-demo folder >> run the \\\"npm start\\\" command 2. Install Tailwind CSS and generate the configuration file >> npm\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/tailwind-css-setup-tailwind-with-react\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/mohd-ebrahim\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/mohd-ebrahim\\\/#author\"},\"datePublished\":\"2023-04-30T13:00:08+05:30\",\"dateModified\":\"2023-05-18T13:02:57+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Tailwind CSS: Setup Tailwind With React | TO THE NEW Blog","description":"Setup tailwind with react 1. create your project folder Open the terminal and navigate your created project, and then run the below command npx create-react-app react-demo. Once reactdemo app has been created, >> go to the react-demo folder >> run the \"npm start\" command 2. Install Tailwind CSS and generate the configuration file >> npm","canonical_url":"https:\/\/2thenew.online\/blog\/tailwind-css-setup-tailwind-with-react\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/2thenew.online\/blog\/tailwind-css-setup-tailwind-with-react\/#article","name":"Tailwind CSS: Setup Tailwind With React | TO THE NEW Blog","headline":"Tailwind CSS: Setup Tailwind With React","author":{"@id":"https:\/\/2thenew.online\/blog\/author\/mohd-ebrahim\/#author"},"publisher":{"@id":"https:\/\/2thenew.online\/blog\/#organization"},"image":{"@type":"ImageObject","url":"\/blog\/wp-ttn-blog\/uploads\/2023\/04\/react-demo-1024x142.png","@id":"https:\/\/2thenew.online\/blog\/tailwind-css-setup-tailwind-with-react\/#articleImage"},"datePublished":"2023-04-30T13:00:08+05:30","dateModified":"2023-05-18T13:02:57+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/2thenew.online\/blog\/tailwind-css-setup-tailwind-with-react\/#webpage"},"isPartOf":{"@id":"https:\/\/2thenew.online\/blog\/tailwind-css-setup-tailwind-with-react\/#webpage"},"articleSection":"Drupal, Front End Development, React.js, Drupal, Front End Development, React.js Technology"},{"@type":"BreadcrumbList","@id":"https:\/\/2thenew.online\/blog\/tailwind-css-setup-tailwind-with-react\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog#listItem","position":1,"name":"Home","item":"https:\/\/2thenew.online\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog\/category\/react-js\/#listItem","name":"React.js"}},{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog\/category\/react-js\/#listItem","position":2,"name":"React.js","item":"https:\/\/2thenew.online\/blog\/category\/react-js\/","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog\/tailwind-css-setup-tailwind-with-react\/#listItem","name":"Tailwind CSS: Setup Tailwind With React"},"previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog\/tailwind-css-setup-tailwind-with-react\/#listItem","position":3,"name":"Tailwind CSS: Setup Tailwind With React","previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog\/category\/react-js\/#listItem","name":"React.js"}}]},{"@type":"Organization","@id":"https:\/\/2thenew.online\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/2thenew.online\/blog\/"},{"@type":"Person","@id":"https:\/\/2thenew.online\/blog\/author\/mohd-ebrahim\/#author","url":"https:\/\/2thenew.online\/blog\/author\/mohd-ebrahim\/","name":"Mohd Ebrahim","image":{"@type":"ImageObject","@id":"https:\/\/2thenew.online\/blog\/tailwind-css-setup-tailwind-with-react\/#authorImage","url":"https:\/\/newersworld-static.tothenew.net\/live\/social\/user\/profilePicture\/e3c20c6a-2398-4fce-865a-0572da49b7c8.jpeg","width":96,"height":96,"caption":"Mohd Ebrahim"}},{"@type":"WebPage","@id":"https:\/\/2thenew.online\/blog\/tailwind-css-setup-tailwind-with-react\/#webpage","url":"https:\/\/2thenew.online\/blog\/tailwind-css-setup-tailwind-with-react\/","name":"Tailwind CSS: Setup Tailwind With React | TO THE NEW Blog","description":"Setup tailwind with react 1. create your project folder Open the terminal and navigate your created project, and then run the below command npx create-react-app react-demo. Once reactdemo app has been created, >> go to the react-demo folder >> run the \"npm start\" command 2. Install Tailwind CSS and generate the configuration file >> npm","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/2thenew.online\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/2thenew.online\/blog\/tailwind-css-setup-tailwind-with-react\/#breadcrumblist"},"author":{"@id":"https:\/\/2thenew.online\/blog\/author\/mohd-ebrahim\/#author"},"creator":{"@id":"https:\/\/2thenew.online\/blog\/author\/mohd-ebrahim\/#author"},"datePublished":"2023-04-30T13:00:08+05:30","dateModified":"2023-05-18T13:02:57+05:30"},{"@type":"WebSite","@id":"https:\/\/2thenew.online\/blog\/#website","url":"https:\/\/2thenew.online\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/2thenew.online\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"Tailwind CSS: Setup Tailwind With React | TO THE NEW Blog","og:description":"Setup tailwind with react 1. create your project folder Open the terminal and navigate your created project, and then run the below command npx create-react-app react-demo. Once reactdemo app has been created, &gt;&gt; go to the react-demo folder &gt;&gt; run the &quot;npm start&quot; command 2. Install Tailwind CSS and generate the configuration file &gt;&gt; npm","og:url":"https:\/\/2thenew.online\/blog\/tailwind-css-setup-tailwind-with-react\/","og:image":"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"Tailwind CSS: Setup Tailwind With React | TO THE NEW Blog","twitter:description":"Setup tailwind with react 1. create your project folder Open the terminal and navigate your created project, and then run the below command npx create-react-app react-demo. Once reactdemo app has been created, &gt;&gt; go to the react-demo folder &gt;&gt; run the &quot;npm start&quot; command 2. Install Tailwind CSS and generate the configuration file &gt;&gt; npm","twitter:image":"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"57221","title":null,"description":null,"keywords":[],"keyphrases":{"focus":[],"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":{"id":"#aioseo-article-65e06528ee761","slug":"article","graphName":"Article","label":"Article","properties":{"type":"BlogPosting","name":"#post_title","headline":"#post_title","description":"#post_excerpt","image":"","keywords":"","author":{"name":"#author_name","url":"#author_url"},"dates":{"include":true,"datePublished":"","dateModified":""}}},"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":"{\"article\":{\"articleType\":\"BlogPosting\"},\"course\":{\"name\":\"\",\"description\":\"\",\"provider\":\"\"},\"faq\":{\"pages\":[]},\"product\":{\"reviews\":[]},\"recipe\":{\"ingredients\":[],\"instructions\":[],\"keywords\":[]},\"software\":{\"reviews\":[],\"operatingSystems\":[]},\"webPage\":{\"webPageType\":\"WebPage\"}}","pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"limit_modified_date":false,"created":"2023-05-08 04:27:02","updated":"2024-02-29 11:06:16","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.online\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.online\/blog\/category\/react-js\/\" title=\"React.js\">React.js<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tTailwind CSS: Setup Tailwind With React\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/2thenew.online\/blog"},{"label":"React.js","link":"https:\/\/2thenew.online\/blog\/category\/react-js\/"},{"label":"Tailwind CSS: Setup Tailwind With React","link":"https:\/\/2thenew.online\/blog\/tailwind-css-setup-tailwind-with-react\/"}],"_links":{"self":[{"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/posts\/57221","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/users\/1546"}],"replies":[{"embeddable":true,"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/comments?post=57221"}],"version-history":[{"count":3,"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/posts\/57221\/revisions"}],"predecessor-version":[{"id":57399,"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/posts\/57221\/revisions\/57399"}],"wp:attachment":[{"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/media?parent=57221"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/categories?post=57221"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/tags?post=57221"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}