1.0.22 • Published 1 year ago

reactive-shared v1.0.22

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Shared App

Set of utils for all the fs front apps.

Here is defined the main resources for create routes, create forms and api calls.


Create Routes

For create Router schema its needed to have a config object (see useRoutes Doc)

TODO: set config for auth

and set in the root file app

import 

Create Forms


Api calls


Components and Utils

  • components
    • loading
  • hoc
    • buildEntityPage
    • buildForm
  • utils
    • api
    • endpoints
    • intl
    • localStorage

Scripts

Create Entity

run node node_modules/reactive-shared/scripts/createEntity.js entity where entity must be singular and lower. (ie: user, post, config)

For run correctly, in your main repo must have chalk & pluralize. (npm run --save-dev chalk pluralize)


Troubleshot

How to solve react hooks problem in apps

add this in webpack.config main app

resolve: {
  react: path.resolve('../../node_modules/react'),
  'react-router-dom': path.resolve('../../node_modules/react-router-dom')
}

for avoid onlyText lang issues, use these functions inside components tree. Do NOT create constants that use these functions outside components.... use useMemo for this

1.0.22

1 year ago

1.0.21

1 year ago

1.0.20

1 year ago

1.0.19

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.1

2 years ago