CSS Modules React and Overriding CSS Classes

Posted by Jessica Taylor | Updated on

CSS Modules React and Overriding CSS Classes CSS modules won’t allow you to safely override the active className (largely by design). Really it should be exposed via an API, e.g. ‘activeClassName’.

If the maintainers disagree or you need this quick then you can quite easily add your own active className because your implementing component is managing the index state:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers