Giter Site home page Giter Site logo

davidhu2000 / react_redux_generator Goto Github PK

View Code? Open in Web Editor NEW
13.0 2.0 4.0 150 KB

A npm script for generating all parts of react and redux web application.

Home Page: https://www.npmjs.com/package/redux-file-gen

License: MIT License

JavaScript 100.00%
javascript filesystem react redux file-generator npm npm-module

react_redux_generator's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

react_redux_generator's Issues

util remover issue

when removing util file, the module tries to remove from /frontend/utils/*.js instead of from /frontend/util/*.js

reducer generator name issue

When generating a reducer with camel case name, the converter does not convert to snack case.

redux g reducer tvShows

will create a reducer with the name

tvShows_reducer.js

Modify generated component file names

Whenever a component is generated,

<component>.jsx and <component>_container.jsx are generated. If we change the container filename to index.jsx, then whenever we import the component, we can just do

`import Component from './component'

instead of

import ComponentContainer from './component/component_container'

Bug in component generator

  1. The props in the following should be state instead. Maybe you can even have (state, ownProps).
const mapStateToProps = props => ({
});
  1. Also, it needs to export default in
export connect(
  mapStateToProps,
  mapDispatchToProps
)(Component);

remove {} from util ajax request

when creating an util with an ajax request, the result is

export const fetchVideos = videos => ({
  $.ajax({
    method: '',
    url: '',
    data: ''
  })
});

it should be

export const fetchVideos = videos => (
  $.ajax({
    method: '',
    url: '',
    data: ''
  })
);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.