Is there a way to use external css (i.e bootstrap, semantic-ui, foundation, etc) while still getting the base64 class names? This could be possible if there was a way to use multiple class names.
Currently you can only use one class name like this
import React, {Component} from 'react';
import style from './App.scss';
import styles from '../semantic/dist/components/button.min.css'
render() {
return (
<div className="App">
<div className={style.button}>Hello Webpack!!!</div>
);
}
}
I need to be able to use multiple class names like this:
<div className={style.btn} + {style.red}>Hello Webpack!!!</div>
in order to use css frameworks and get the base64 class names. Is there a way to do this?
classNameaccepts a string, so you can easily use multiple values:className={`${class1} ${class2}`}. But I'm not sure what you mean when you refer to the "base64 class names" of the frameworks. Why wouldn't you use classes like normal?:local(...)for each of the class names (semantic-ui) and get the base64 random class names.../semantic/dist/components/button.min.cssI can useclassName="ui red button"fine, but if Iimport Semantic from '../semantic/dist/components/button.min.css', I can't useclassName={Semantic.ui + " " + Semantic.button}most likely because thesemantic-uicss files don't have the:local(...)prefix.:local, why would they have random class names? Back to my original comment, why can't you doclassName="ui red button"?