1.0.3 • Published 3 years ago

@idemax/react-creator-helper v1.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

React Creator Helper

Creates a component in a folder with a JSX and SCSS file named as you wish.

NPM install

npm i -g react-creator-helper

How to use?

react-creator-helper my-component ../../path

Example:

react-creator-helper my-button ../../my-app/src/components/

Created files examples

React Component

my-thing/my-thing.component.jsx

import React from "react";

import "./my-thing.styles.scss";

class MyThing extends React.Component {
    constructor(props) {
        super(props);

        this.state = {};
    }

    render() {
        return (
            <div>Hello, I'm MyThing!</div>
        );
    }

}

// function component
// const MyThing = (props) => ();

export default MyThing;

SCSS style

my-thing/my-thing.styles.scss

// add the classes for MyThing below...

Enjoy!

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago