Skip to content

Instantly share code, notes, and snippets.

@akoskm
Last active December 2, 2019 08:56
Show Gist options
  • Save akoskm/ee46ba8383a0e376a7028a6f6c4641e0 to your computer and use it in GitHub Desktop.
Save akoskm/ee46ba8383a0e376a7028a6f6c4641e0 to your computer and use it in GitHub Desktop.
react component:
render() {
const { username, password } = this.state.formData;
return (
<div className={style.className}>
<hgroup>
<div className="center">
<h1>Hi</h1>
</div>
</hgroup>
<Form autoFocus className={style.form} onSubmit={this.onSubmit.bind(this)}>
<div className="login-form-holder">
this is the scss I'm converting:
:local(.className) {
overflow: hidden;
position: fixed;
top: 50%;
transform: translate(0, -50%);
width: 100%;
.login-form-holder {
margin: 0 auto;
width: 340px;
with css-loader 0.x this is converted to:
._1WxupzofLygwWbaM-WRBQx .login-form-holder {
margin:0 auto;
width:340px
}
with css-loader 3.x I'm getting:
._1WxupzofLygwWbaM-WRBQx ._3u7Jb5cUZzGzrW_JsQnPrB {
margin: 0 auto;
width: 340px; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment