4 ms·
I went "all in" on React a few weeks ago, but one probelm I had is the complexity of the various samples/starter kits. If anyone knows basic React and uses T
by novaleaf 11y ago
I went "all in" on React a few weeks ago, but one probelm I had is the complexity of the various samples/starter kits.
If anyone knows basic React and uses Typescript, and want to start using Redux/ReduxSimpleRouter, you'll find this interesting: https://news.ycombinator.com/item?id=10837377 https://news.ycombinator.com/item?id=10837377
- silviogutierrez 11y agoDoes this work with the new react router that was just released? And did you try using Immutable.js ? From my understanding, it doesn't work so well with simple router.
- deleted 11y ago[deleted]
- silviogutierrez 11y agoHuh? Immutable.js is written in Typescript, and it's advocated by Redux, so I figured it's a natural fit in the React ecosystem. At least ideologically. Actually wiring it up sounds difficult.
- novaleaf 11y agoi tried Immutable, but it adds lots of tangential stuff, way too much for a React/Redux beginner (like me). and, using react-router from a couple weeks ago, so this is using the "old" 1.x version.
- mambodog 11y agoThe only reason you could have a problem using Immutable.js with redux-simple-router is if you're trying to make the router's state into an Immutable.js data structure, but there is no reason to do that. redux-simple-router manages it's own part of the state, and you don't need to directly mutate it. You only read it or dispatch an action to update it. You don't need to make the entirety of your state tree an Immutable.js structure, just the parts which are managed by the reducers you write.
- vdnkh 11y agoI've been trying to solve this overly-complex-scaffold meme by chronicling my own research into React/Flux in a Yeoman generator. It's really simple and in addition to React/Flux basics, how to make REST calls to a Node backend/hook up React Router. It's not quite done yet though. https://github.com/johnBartos/React-Devilish https://github.com/johnBartos/React-Devilish
- Keats 11y agoI have something similar there as well: https://github.com/Keats/flow-typescript/tree/master/typescript https://github.com/Keats/flow-typescript/tree/master/typescr...
- novaleaf 11y agoFeel free to use any parts of my guest you find interesting :)
- voltagex_ 11y agoOne of the biggest problems I have is the number of things I need to install at $EMPLOYER to make it all work. Typescript I can get approved because it's "Microsoft", but Node/NPM and Ruby? (for SASS) Not a chance - even if it could make it out of the NTLM-auth proxy.
- moogly 11y agoNode/NPM is installed as part of Visual Studio 2015 these days, is it not? Edit: Note I'm not saying you should install VS2015 just to get Node, but it might help you convincing the powers that be that "hey, Microsoft installs these components as part of VS2015, so it's not that weird, I promise".