Looking at a webpage created with React, I see class names like class="pmjY9Fa_. I know about encapsulation, but am wondering when does the turning of human readable class names into a unique string happen? Looking at my own app (created with the basic create-react-app) the class names are still normal. Do I have to npm install something like css-modules? And if I do, what happens then? Like, I have to eject my CRA to add css-modules to my webpack configuration so when the app builds (either for development or production) the style names are hashed? Also, isn't it a bad development experience if the style names are all hashed?
My question his, how can I set up style encapsulation with hashed classes and still have a decent development experience with human readable class names?
edit: Also I'm trying to figure out how this is done without using Styled Components because the project I'm going to work on already uses scss co-located with the JSX files.