Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

hf-jest-utility

hsiaofung14MIT1.0.0

Redux, React-Redux, Redux-thunk, Router Encapsulation.
So we can only use single model file to implement Redux/Redux-thunk
Medium : hf-rt : <a href="https://medium.com/@hfchou/hf-rt-a-framework-to-easy-use-redux-redux-thunk-and-react-router-e8

readme

Description

Redux, React-Redux, Redux-thunk, Router Encapsulation.
So we can only use single model file to implement Redux/Redux-thunk
Medium : hf-rt : A framework to easy use redux, redux-thunk and react-router(partI)

Feature

Support create-react-app
*Write action, action type, reducer in a single file.
\
Clear API to implement Web frontend.

How to use

  • Create a creat-react-app project
npx create-react-app my-app
  • Delete contents in index.js, and add the contents as below.

  • import app.js

import { app } from "./app";
  • Then, you can start to add your new page.
app.page({ path: "/home", component: require("./pages/Home") });
  • Or, add a new model
app.model(require("./models/products"));
  • Or, add a new api
app.api({name:'products', path:''});
  • After that, strat your app
app.start("root");