Tailwind

유석현(SeokHyun Yu)·2022년 11월 24일
0

React

목록 보기
19/21
post-thumbnail

index.js

import React from "react";
import ReactDOM from "react-dom/client";
import App from "./App";
import "./index.css";

const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(
    <React.StrictMode>
        <App />
    </React.StrictMode>
);

index.css

@tailwind base;
@tailwind components;
@tailwind utilities;

App.js

function App() {
    return (
        <>
            <h1 className="text-8xl">hello</h1>
            <button className="bg-blue-100 rounded-xl px-5">Button</button>
        </>
    );
}

export default App;

tailwind.config.js

/** @type {import('tailwindcss').Config} */
module.exports = {
    content: ["./src/**/*.{js, jsx, ts, tsx}"],
    theme: {
        extend: {},
    },
    plugins: [],
};

View

profile
Backend Engineer

0개의 댓글