Create Minimal React Component With SASS Modules



    React Recipes

    You create two files in the same folder, which should have the same prefixed name:

    • component (.tsx)
    • styles (.module.scss)

    Run the shortcut in your component file and presto the boilerplate is all there for you.

    Library: react

    Shortcut: create.minimal.react.scss.module.component

    import React from 'react';
    import styles from './filename.module.scss'
    type filenameProps = {}
    const filename = ({}: filenameProps) => {
      return (
    export default filename;
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.