React component library used by solved.ac
yarn add @solved-ac/ui-react styled-components
or, with npm:
npm install --save @solved-ac/ui-react styled-components
Setup module alias. Please refer to: https://styled-components.com/docs/faqs#linking-in-an-ssr-scenario
Modify tsconfig.json
to setup module alias.
{
"compilerOptions": {
"paths": {
"styled-components": ["./node_modules/styled-components"]
}
}
}
import { Button } from '@solved-ac/ui-react'
class Example extends Component {
render() {
return <Button />
}
}
MIT © shiftpsh