react-cli-module-structure

1.2.0 • Public • Published

React Module Structure

Wireframe for your React Apps, that were started with create-react-app.

Creates a subfolder in the src-directory with the name of the module and multiple sub-folders.

New React Project

create-react-project ProjectName

Initialises a new project with create-react-app, but with other configs to work with.

New React Project Module

create-react-module ModuleName

Create a new module subdir in an create-react-app main directory with some template files. Can be connected to the project by importing the config file to the appConfig.js file with:

import * as ModuleName from './ModuleName/Config';

and be added to the INSTALLED_APPS const:

export const INSTALLED_APPS = [
    ModuleName,
    OtherModuleName
];

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.2.01latest

Version History

VersionDownloads (Last 7 Days)Published
1.2.01
1.1.11
1.1.01
1.0.11
1.0.01

Package Sidebar

Install

npm i react-cli-module-structure

Weekly Downloads

5

Version

1.2.0

License

ISC

Last publish

Collaborators

  • svschannak