A SoundCloud client in React and Redux
robinwieruch.de
A SoundCloud client in React and Redux
1–10 of 74 posts
Re: A SoundCloud client in React and Redux
#2Re: A SoundCloud client in React and Redux
#3At work I've started keeping the reducer in the actions file, anyone else do that? This way they can share the same const declarations, and you don't have to toggle between two files when most actions / reducers are pretty small.
Re: A SoundCloud client in React and Redux
#4Re: A SoundCloud client in React and Redux
#5At work I've started keeping the reducer in the actions file, anyone else do that? This way they can share the same const declarations, and you don't have to toggle between two files when most actions / reducers are pretty small.
The potential reason not to do that is that more than a reducer may listen for a given action, even though I guess it's more an exception than the norm.
Re: A SoundCloud client in React and Redux
#6It's also good to see a pretty complete description of the testing setup, although I have some concerns about the "inject everything into the `global` object in setup" approach, which is a relatively coarse technique for simulating a browser environment in Node, and means the unit tests are running in a "special" environment unlike the actual running application environment. No one has completely solved this problem, but it's an important part of the discussion for anyone wanting to do things "right" from the beginning. Injecting `React` as a global variable for convenience also makes me cringe a little bit, given the ease of writing explicit dependencies in modern javascript.
Nice step-by-step article though - I like that there are a growing number of accessible entry points like this and I look forward to the community growing and maturing to define best practices.
Re: A SoundCloud client in React and Redux
#7Cool to see so much packed into one place. In my experience with React and Redux, there have been two major challenges in finding well-documented examples to follow. First is finding anything that describes more than a toy project that just demonstrates the most straightforward implementation of one-way data flow. This tutorial isn't bad, although it's comparable to the reddit-based tutorial in the Redux docs. The se…
http://silvenon.com/testing-react-and-redux/
Disclaimer: I am in the AVA team. It really is cool though.
Re: A SoundCloud client in React and Redux
#8Re: A SoundCloud client in React and Redux
#9Cool to see so much packed into one place. In my experience with React and Redux, there have been two major challenges in finding well-documented examples to follow. First is finding anything that describes more than a toy project that just demonstrates the most straightforward implementation of one-way data flow. This tutorial isn't bad, although it's comparable to the reddit-based tutorial in the Redux docs. The se…
Re: A SoundCloud client in React and Redux
#10At work I've started keeping the reducer in the actions file, anyone else do that? This way they can share the same const declarations, and you don't have to toggle between two files when most actions / reducers are pretty small.