-
/* ./button.jsx */
import React, { Component } from 'react';
import styles from './button.module.css'; // Import css modules stylesheet as styles
import './another-stylesheet.css'; // Import regular stylesheet
class Button extends Component {
render() {
return <button className={styles.error}>Error Button</button>;
}
} /* ./button.module.css */
.error { background-color: red; } Doesn't looks like working with Aleph as of now. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
aleph uses lightning-css as the CSS pre-processor which supports css modules https://lightningcss.dev/css-modules.html, but i didn't add it as the feature yet |
Beta Was this translation helpful? Give feedback.
aleph uses lightning-css as the CSS pre-processor which supports css modules https://lightningcss.dev/css-modules.html, but i didn't add it as the feature yet