As React Material UI provides styling based on JavaScript code (css in js), we should follow this approach and do not mix it with our custom scss. We should create a .styled.ts files where we will keep all the styles for a given component. You can see an example below given url:
As React Material UI provides styling based on JavaScript code (css in js), we should follow this approach and do not mix it with our custom
scss
. We should create a.styled.ts
files where we will keep all the styles for a given component. You can see an example below given url:https://github.com/GDSC-Lodz-University-of-Technology/warzywniax/tree/master/src/components/Button