Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
acemarke
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
49 ms
·
391.
▲
by
acemarke
5y ago
The de-facto standard resource on React + TS is the community-maintained React TypeScript Cheatsheet site: https://react-typescript-cheatsheet.netlify.app/ But yes, I'd love to have some of this info added to the offic
392.
▲
by
acemarke
5y ago
The post "Why React Hooks?" helps explain the historical context and reason for their creation: https://ui.dev/why-react-hooks/ I also discussed some of the tradeoffs in a conference talk and blog post: http
393.
▲
by
acemarke
5y ago
I had asked Rachel Nabors about that a few weeks ago, and she said she had a post drafted and would put it up post-beta launch.
394.
▲
by
acemarke
5y ago
heh, to be clear, _I_ didn't work on this at all :) It was primarily Rachel Nabors and Dan Abramov from the React team doing the writing: https://beta.reactjs.org/community/acknowledgements#react-do... (I did get
395.
▲
by
acemarke
5y ago
I am _so_ very excited about this! This is going to be a huge help for the community. These new docs are an incredible improvement over the old docs. In-depth tutorial and concept explanations, live editable sandboxes, coverage of key co
396.
▲
New React Docs beta: function components, hooks, rendering, and more
(beta.reactjs.org)
3 points
by
acemarke
5y ago
|
0 comments
397.
▲
by
acemarke
5y ago
I'm genuinely curious - what _specific_ things would you point to, in our recommended usage patterns, as "boilerplate" and "nightmare"?
398.
▲
by
acemarke
5y ago
Heh, I wrote "Redux - Not Dead Yet!" in 2018 [0] to counteract FUD from the Twitterati, and updated it again in 2020. If nothing else, it's saved me from having to rewrite the exact same answer hundreds of times in separate
399.
▲
by
acemarke
5y ago
Hi, I'm a Redux maintainer, and I created RTK. Can you clarify what you mean by "awkward"? FWIW, we have a _lot_ of very happy RTK users out there: https://www.reddit.com/r/reactjs/comments/px6
400.
▲
by
acemarke
5y ago
Yeah, we actually went through this with Redux itself. When Redux was first released in 2015, it was deliberately designed to be minimal and extensible. Other Flux libraries at the time had various forms of async handling built in (support
401.
▲
by
acemarke
5y ago
The "audit warnings" are unfortunately entirely irrelvant to a build tool like CRA: https://overreacted.io/npm-audit-broken-by-design/ The size of CRA is largely due to its primary dependencies (Webpack, Babe
402.
▲
by
acemarke
5y ago
I'm genuinely curious - what difference does it make to you, the end user, if CRA has that extra logic internally? You won't see any of it unless you intentionally eject, and all it really is is some checks in the Webpack config
403.
▲
by
acemarke
5y ago
Hi, I'm a Redux maintainer. Note that you _should_ be using our official Redux Toolkit package to write all your Redux logic [0]. RTK is now the standard approach for writing Redux logic. It includes utilities to simplify several com
404.
▲
by
acemarke
5y ago
You've got a link to `@babel/standalone/babel.min.js` and a `<script type="text/babel">`. Are those not being used at all? Because that's definitely "transpiling", just not with an external
405.
▲
by
acemarke
5y ago
Hooks don't really change anything about whether or not you use Redux, though. The only real difference is that there's now the `useReducer` hook, but that's just a different mechanism for updating the same component state we
406.
▲
by
acemarke
5y ago
The author of this series has done an excellent job breaking down some of key aspects of React's rendering into good explanations with some nifty illustrations. As linked in this article, folks might also be interested in my very exten
407.
▲
by
acemarke
5y ago
That's the point, it's _not_ the same files. Instead of extracting 75K individual files on disk, the Plug 'n Play concept keeps every package as its zipped tarball on disk. So, N tarballs, one per package, instead of hundred
408.
▲
by
acemarke
5y ago
My experience is that Yarn v2 works great as long as you stick with the `node_modules` linker. It's the "Plug 'n Play" functionality that is great in theory but still rough in practice. I've been using Yarn v2 on a
409.
▲
by
acemarke
5y ago
My experience is that Yarn 2 works great as long as you stick with the `node_modules` linker. It's the "Plug 'n Play" functionality that is great in theory but still rough in practice.
410.
▲
by
acemarke
5y ago
There's a very nice Git History extension for VS Code that will do pretty much what you're describing: https://marketplace.visualstudio.com/items?itemName=pomber.g...
411.
▲
by
acemarke
5y ago
This is mixing up a few different things. Vue and React are primarily client-side frameworks, intended to run in a browser. They expect that the Document Object Model (DOM) APIs be available, so that they can update parts of the current pa
412.
▲
by
acemarke
5y ago
I recently wrote a "How Web Apps Work" series that covers the common terms, technologies, and concepts that are used in web dev. It's a bit more oriented towards the front-end / JavaScript side of things, but covers some
413.
▲
React Team: Status Update on the New React Docs
(github.com)
1 points
by
acemarke
5y ago
|
0 comments
414.
▲
by
acemarke
5y ago
Agreed that having React available as native ES Modules would be good. There's an open issue on that: https://github.com/facebook/react/issues/11503 However, there really isn't anything to tree-shak
415.
▲
by
acemarke
5y ago
RTK Query is a powerful and easy-to-use server data caching solution built specifically for Redux Toolkit. It's UI-agnostic, and can generate React hooks as well. RTK Query takes inspiration from many other great libraries like React Q
416.
▲
Redux Toolkit 1.6.0, with new RTK Query data caching API
(github.com)
5 points
by
acemarke
5y ago
|
1 comments
417.
▲
by
acemarke
5y ago
You should be able to write thunks in the same file as `createSlice`, usually in front of the `createSlice` call, and then use the `extraReducers` "builder callback" syntax inside the slice to handle the various actions dispatched
418.
▲
by
acemarke
5y ago
There was some good critique of this article in the /r/javascript discussion thread: https://www.reddit.com/r/javascript/comments/nnu7vf/why_reac...
419.
▲
by
acemarke
5y ago
Glad to hear that RTK is working well for you! Out of curiosity, what sort of "tinkering" did you find yourself doing, and what sort of patterns did you end up with?
420.
▲
by
acemarke
5y ago
Out of curiosity, any particular concerns with RTK? Also interested in hearing any specifics about how MobX is "easier to reason about" for you.
More ›