Answers for "tailwind css reactjs"

5

commmand for installing tailwind to react

npm install tailwindcss
Posted by: Guest on September-01-2020
1

how to properly install tailwind css in react

@import "tailwindcss/base";

@import "tailwindcss/components";

@import "tailwindcss/utilities";
Posted by: Guest on December-24-2020
0

tailwind css in react

npx tailwindcss-cli@latest init
Posted by: Guest on August-19-2021
0

how to properly install tailwind css in react

npx tailwind init tailwind.js --full
Posted by: Guest on December-24-2020
1

tailwind css in react

// craco.config.js
module.exports = {
  style: {
    postcss: {
      plugins: [
        require('tailwindcss'),
        require('autoprefixer'),
      ],
    },
  },
}
Posted by: Guest on August-19-2021
0

tailwind css in react

// src/index.js
  import React from 'react';
  import ReactDOM from 'react-dom';
+ import './index.css';
  import App from './App';
  import reportWebVitals from './reportWebVitals';

  ReactDOM.render(
    <React.StrictMode>
      <App />
    </React.StrictMode>,
    document.getElementById('root')
  );

  // ...
Posted by: Guest on August-28-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language