Answer the question
In order to leave comments, you need to log in
How to get started with cssModules without server-side JS?
Have a wonderful New Year's Eve everyone!
I'll start right away with a great example, if we were to use js and render it on the server:
//...
import stylesButton from './button.css';
// код сильно сокращен, но смысл понятен
export default class button extends Component {
render() {
return <button className={className}>{text}</button>
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question