I'm using CSS Modules in my React app. There is a need to set a class that will consist of 2 strings and then converted to module.
Example.
import React from 'react';
import css from './ContentMedia.module.css';
const Content = (props) => {
    return (
        <div className={css.container}>
           {props.areas && 
               props.areas.map((area) => {
                   return (
                       <div className={`css.areaGrid${area.grid}`} key={area.id}>
                          ...
                       </div>
                   );
               });
           }
        </div>
    );
};
export default Content;
If I'm setting class as className={css.areaGrid${area.grid}} I receive the wrong result (see the picture below). But I need to receive a predefined css-class .areaGrid12 or .areaGrid6 or .areaGrid4 that should look like i.e. Content_areaGrid12_6yth. How should I fix the JSX to make it work?

 
    