create-react-library
create-react-library copied to clipboard
How to add `index.css` implicitly without having to import it manually in react-app?
hello, i'm working on component library which can be lookalike of material-ui , everything works fine except that i have to import css explicitly on every project
it's like
import App from './App'
import {Button} from 'fusion'
import 'fusion/dist/index.css'
ReactDOM.render(<App />, document.getElementById('root'))
what i want is: (directly import components without importing css)
import App from './App'
import {Button} from 'fusion'
ReactDOM.render(<App />, document.getElementById('root'))
You should use a css-in-js approach