I am a bit confused with using SASS/SCSS in a react typescript project. I found an article saying how SASS/SCSS can be used in react project: https://create-react-app.dev/docs/adding-a-sass-stylesheet
Although it seems importing .scss files in .tsx component files works perfectly fine, like this:
import './component-1.scss';
but then what about building the scss files and compiling them to css? why do we need that if a browser can understand the scss files. or am I understanding wrong here?
if compiling scss files are necessary and we should import compiled css files in the component like:
import './component-1.css';
then how will I achieve this prior to compile because there will only be scss files present in the directory.