mirror of
https://github.com/kou029w/_.git
synced 2025-01-31 06:18:07 +00:00
19 lines
426 B
JavaScript
19 lines
426 B
JavaScript
import "./App.css";
|
|
|
|
function Text(props) {
|
|
// eslint-disable-next-line react/prop-types
|
|
return <div className={`w-1 ${props.className}`}>red text</div>;
|
|
}
|
|
|
|
function App() {
|
|
return (
|
|
<>
|
|
{/* eslint-disable-next-line tailwindcss/no-contradicting-classname */}
|
|
<Text className="container w-2 w-3" />
|
|
{/* これはパス */}
|
|
<Text className="container w-2" />
|
|
</>
|
|
);
|
|
}
|
|
|
|
export default App;
|