News for hackers. Stuff that matters.
Re:Free React.js Fundamentals Course by silviogutierrez on Tuesday March 01, 2016 @06:58PM (#11207172)
Any good tutorials for CRUD-heavy redux apps? Do you dynamically create your action creators? Or did you write createWidget(), updateWidget(), retrieveWidget() and destroyWidget() manually per resource (and their 3 corresponding constants for REQUEST, SUCCESS and ERROR)?

And how do you ensure your detail components (WidgetDetail, or WidgetForm) have the widget loaded before displaying? asyncConnect?

Thanks in advance for any pointers!

Re:Free React.js Fundamentals Course by scwoodal on Tuesday March 01, 2016 @07:45PM (#11207390)
I'm a visual person so perhaps seeing some code will help. I've gutted a CRUD heavy side project that shows how I lay things out and put it on Github [1]. I left out the back end folder so this repo isn't intended to work. The "users" and "journals" folders are the CRUD parts.

I prefer a domain folder structure versus splitting things by function. So instead of folders like "actions/userActions.js" and "reducers/userReducer.js" I'll do "users/actions.js" and "users/reducers.js".

Ping me on github if you have any more questions.

[1] https://github.com/scottwoodall/react-demo

Re:Free React.js Fundamentals Course by silviogutierrez on Tuesday March 01, 2016 @07:56PM (#11207438)
Whoa thanks! I'll take a look.