mzreact-cli
Version:
MzReact-CLI ===
36 lines (32 loc) • 640 B
Markdown
```scss
$prefix :
.
@at-root
/*
setup your style here for
#__PREFIX__#-feat class elements and children!
*/
}
}
```
```jsx
import "./style.scss";
import { useClassPrefix } from "mazeof-react/dist/hooks";
export const Design = ({ prefix }) => {
const pre = useClassPrefix(prefix);
return (
<div className={pre(`feat feat-light`)}>
<h1>Your "#__COMPONENT__#" Component is ready !</h1>
</div>
);
};
```
```jsx
import { Design } from "./design";
export const
return <Design prefix="#__PREFIX__#" />;
};
```