1
0
Fork 0
mirror of https://github.com/kou029w/_.git synced 2025-01-31 06:18:07 +00:00
_/eslint-plugin-tailwindcss/src/App.jsx

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;