The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Flux Architecture: Dumb Stores

Flux Architecture: Dumb Stores

2:03
In this lesson we'll simplify future development by reducing the logic contained in our application's store.
Watch this lesson now
Avatar
egghead.io

In this lesson we'll simplify future development by reducing the logic contained in our application's store.

Avatar
Jacob

There are two main.js files. I am getting an error when running your code from github (actually two errors). One is that babel is now babel-core. The other is: Error: Cannot find module "./src/js/main.js".

Avatar
Jacob

The solution was to include:
babel-preset-react, babel-preset-es2015, babel-polyfill, and babel-loader to my npm dev dependencies.

In reply to Jacob
Avatar
Joseph

Nice find on the phantom main.js, I've removed it from the applicable branches to avoid any confusion. You shouldn't need babel-polyfill, only the two presets as covered in the first lesson. Good job finding it on your own anyways. :)

In reply to Jacob
Avatar
Arek Śliwa

Thank you for great tutorial! I love tutorials with buildiing shops :)

Avatar
Stephen

Joe... Thank you for the excellent tutorial. It really got my brain juices flowing!

I learn best by rewriting the code into my preferred style as I go through the course. I have uploaded a repo of my final project to GitHub.

Kind regards,

Stephen Turner

@LittleBrainz

Avatar
Maximilian Kern

Thanks for a great tutorial. I was wondering if there is a guide on how to call async ajax requests with react, Would be awesome to implement that into this project.

Avatar
Pete

Great series; would be nice to take an application built with just react, then take and apply the flux architecture to it and show how they differ.

Additionally would be neat to see how to inject testing in this application too.

Thanks!

Avatar
Irvin

Great series. Thank you.

Avatar

Is it possible to Deploy to a share hosting like hostgator or bluehost?

Avatar
Webmaster

Great tutorial! Maybe you can help I'm really struggling adapting your project to pull data via a fetch of a json api. I basically replaced your getCatalog() function in the CartAPI to use a fetch to get the data. However, two problems are that fetch is asynchronous and also returns a promise. Therefore i cannot get it to populate the react components.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?