0.2.5 • Published 6 years ago

create-react-stuff v0.2.5

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

create-react-stuff

Highly opinionated code generator for React components and containers. Needs no local install.

Usage

With yarn

yarn create react-stuff component|container [optionalSubDir/with/unlimited/levels]

With npx

npx create-react-stuff component|container [optionalSubDir/with/unlimited/levels]

Custom templates

This module has built in templates in the following format:

import React from 'react';

const REPLACE = props => <div>Hello!</div>;

REPLACE.propTypes = {};

export default REPLACE;

Where REPLACE will be replaced by supplied component / container name. Custom templates can be placed in ./src/[component|container]/_template.js. Components also have a _template.test.js template, while containers (for now) don't.

Future versions

...Might be able to create actions, thunks and reducers. Maybe.

0.2.5

6 years ago

0.2.0

6 years ago

0.1.5

6 years ago

0.1.0

6 years ago