snek-at / front

I'm a 🐍 follow me.
Other
1 stars 2 forks source link

There is no folder structure for helpers #64

Open pinterid opened 4 years ago

pinterid commented 4 years ago

Describe the feature or change you'd like

It sould be discussed, if a folder for helpers should be made which would contain most of those functions - only to be imported into the App.js to be appended to globalFunctions.

I think this is a good way to go. But is this relevant to v0.1.0? @snek-at/frontend

I would certainly appreciate this being part of a very early version to keep building on that solid base, yes.

After merging https://github.com/snek-at/front/pull/63 I will add it.

Originally posted by @schettn in https://github.com/snek-at/front/pull/52

A folder helpers should be created which contains most of the functions imported to "App.js".

schettn commented 4 years ago

I would change the structure in a way where every helper functions which should set a state, returns the value instead. Then the state is set in App.js