All 106 Comments

re: Custom react hooks vs services
Hooks define state per call. This is very different. You ca...
re: Making Sense of React Hooks
Thank you!
re: React hooks: get the current state, back to the future
I wrote up a more detailed explanation. overreacted.io/how-...
re: React hooks: get the current state, back to the future
So this might seem unexpected in this case. But let's consi...
re: Your thoughts on React Hooks
simplicity is better than complexity. I don't think any...
re: Why the React community is missing the point about Web Components
Hey, I'm sorry if my reply frustrated you. I'll try to clar...
re: Why the React community is missing the point about Web Components
You can do that just fine with React. There are people who ...
re: Why the React community is missing the point about Web Components
Great stuff! I'm sure a lot of developers will appreciate t...
re: Why the React community is missing the point about Web Components
Note that iOS, Android, and other UI platforms are accessib...
re: Why the React community is missing the point about Web Components
Big fan of your tweets :D Thanks for your measured comment....
re: Why the React community is missing the point about Web Components
im running out of fingers to count the times I've shook my...
re: Why the React community is missing the point about Web Components
Fair.
re: Why the React community is missing the point about Web Components
So maybe this means the holy grail of "code reuse between l...
re: Why the React community is missing the point about Web Components
My spidey-sense is tingling. The React team isn't the w3c ...
re: Why the React community is missing the point about Web Components
You can definitely do that if you want to. For example: np...
re: Why the React community is missing the point about Web Components
I'm not sure how my post justified your patronizing attitud...
re: Why the React community is missing the point about Web Components
It's pretty frustrating trying to compare the advocacy eff...
re: Why the React community is missing the point about Web Components
Sorry about your bad experiences. If there's something we c...
re: Which trend or advancement is being overlooked by most developers?
Figured I'd provide some response from the React side of th...
re: Why the React community is missing the point about Web Components
The point is that you can write reusables and have them ru...
re: Why the React community is missing the point about Web Components
A few quick points from my perspective. (I work on React.) ...
re: Making Sense of React Hooks
What code examples are you comparing? I don’t see any simil...
re: Making Sense of React Hooks
Yeah. We’re optimizing for long term.
re: React DevTools and Unknown Components
To clarify some points. No real surprise here, React can ...
re: React's new Context API and Actions
Note your example will re-render consumers more often than ...
re: React Beginner Question Thread ⚛
Use PureComponent when you have performance issues and have...
re: React Beginner Question Thread ⚛
I tend to either use context for this, or something like je...
re: React Beginner Question Thread ⚛
The question is a bit all over the place so it’s hard to an...
re: React Beginner Question Thread ⚛
I don’t really have the experience with RN to answer this. ...
re: React Beginner Question Thread ⚛
I’m not currently interviewing yet, as I’m actually just go...
re: React Beginner Question Thread ⚛
So that you set the initial value without adding any lifecy...
re: React Beginner Question Thread ⚛
The principles in component organization are the same (RN i...
re: React Beginner Question Thread ⚛
You've tried both and like working with Vue more.
re: React Beginner Question Thread ⚛
componentDidMount fires in children before parents. I don'...
re: React Beginner Question Thread ⚛
I don't have experience with React Native so can't say.
re: React Beginner Question Thread ⚛
FB mostly uses just Flux ReduceStore. Which is similar to R...
re: React Beginner Question Thread ⚛
Sorry, I don't understand what you're asking.
re: React Beginner Question Thread ⚛
IMO that’s exactly what refs are useful for. Pretty much wh...
re: React Beginner Question Thread ⚛
I think code splitting in Redux is a bit harder than it sho...
re: React Beginner Question Thread ⚛
Thanks. Filed your idea as github.com/facebook/react/issues...
re: React Beginner Question Thread ⚛
I think the concepts are pretty much the same so it doesn’t...
re: React Beginner Question Thread ⚛
Lift it up to their shared common ancestor. Then it will be...
re: React Beginner Question Thread ⚛
Replied in github.com/alex3165/react-mapbox-g...
re: React Beginner Question Thread ⚛
I don’t think it matters much. Either way is probably fine....
re: React Beginner Question Thread ⚛
I’d start by looking in the examples folder in the Redux re...
re: React Beginner Question Thread ⚛
I don’t know, but hopefully both before you send it, and on...
re: React Beginner Question Thread ⚛
Please create a minimal example that reproduces the problem...
re: React Beginner Question Thread ⚛
Please search the existing answers 🙂 I believe I already an...
re: Why we went with PreactJs to power the dev.to frontend
When you say “faster” do you mean the smaller bundle size, ...
re: React Beginner Question Thread ⚛
dev.to/dan_abramov/comment/1neb dev.to/dan_abramov/comment/...
re: React Beginner Question Thread ⚛
We explicitly discourage it and will continue to. Your use ...
re: React Beginner Question Thread ⚛
They’re just different. If one was obviously better than th...
re: React Beginner Question Thread ⚛
That wouldn’t be related to Redux though, would it?
re: React Beginner Question Thread ⚛
This makes sense to me. There are also other states with pa...
re: React Beginner Question Thread ⚛
Good to know! I guess webpack is smart enough to do the rep...
re: React Beginner Question Thread ⚛
Add website links between your Twitter and GitHub so they ...
re: React Beginner Question Thread ⚛
^ I agree with this. I’d also note you probably want to use...
re: React Beginner Question Thread ⚛
You want to handle the error case as well (and maybe show a...
re: React Beginner Question Thread ⚛
I don’t have an opinion on this. I find folder structures v...
re: React Beginner Question Thread ⚛
Why not export a component that takes props? In your exampl...
re: React Beginner Question Thread ⚛
These are good guides on the order in which it’s easier to ...
re: React Beginner Question Thread ⚛
It's a pretty abstract question. It's not clear what you me...
re: React Beginner Question Thread ⚛
I think we’ve been fairly open about liking React Router 4 ...
re: React Beginner Question Thread ⚛
Since I’m helping build React itself I don’t use React-rela...
re: React Beginner Question Thread ⚛
Try to see how big apps using Redux organize their state (u...
re: React Beginner Question Thread ⚛
I think it’s very subjective. I know a lot of people who le...
re: React Beginner Question Thread ⚛
That’s right, we don’t want to lock people into using Node....
re: React Beginner Question Thread ⚛
I don’t use TDD with React so I can’t say. I find it very d...
re: React Beginner Question Thread ⚛
I have a few ideas about future courses in mind but haven’t...
re: React Beginner Question Thread ⚛
I think it’s great that people find them useful! Personally...
re: React Beginner Question Thread ⚛
I’m used to working with a designer who edits my JSX to add...
re: React Beginner Question Thread ⚛
Internally React Redux works by calling store.subscribe() w...
re: React Beginner Question Thread ⚛
That’s a great point, you actually can test interactions wi...
re: React Beginner Question Thread ⚛
I guess it’s a React-specific variation on it?
re: React Beginner Question Thread ⚛
I have no idea! I never understood why people pay so much a...
re: React Beginner Question Thread ⚛
I don’t know 🙃 When I started with the React ecosystem mos...
re: React Beginner Question Thread ⚛
Yeah.
re: React Beginner Question Thread ⚛
Here’s my existing answer to this 🙂 dev.to/dan_abramov/comm...
re: React Beginner Question Thread ⚛
I don’t know. It’s quite possible that the browser doesn’t ...
re: React Beginner Question Thread ⚛
Snapshot tests aren’t meant to replace unit testing. They’r...
re: React Beginner Question Thread ⚛
First, just use React 🙂 You will notice bugs, pain points, ...
re: React Beginner Question Thread ⚛
Apps where hundreds of things on the page constantly updat...
re: React Beginner Question Thread ⚛
I don’t know but I’d be very surprised if it could. Workbox...
re: React Beginner Question Thread ⚛
Most of the team works together in Menlo Park (USA), but me...
re: React Beginner Question Thread ⚛
What I’m working on What I’m struggling with What’s worryi...
re: React Beginner Question Thread ⚛
The one thing I encourage you to avoid is inheritance hiera...
re: React Beginner Question Thread ⚛
I don’t know enough about Apollo Client to answer this, sor...
re: React Beginner Question Thread ⚛
If you mean in development of React itself, I don’t really ...
re: React Beginner Question Thread ⚛
You can make one of the sibling components descend from Rea...
re: React Beginner Question Thread ⚛
You might find something like this helpful: developers.goog...
re: React Beginner Question Thread ⚛
We’ve been using them in production at Facebook for about a...
re: React Beginner Question Thread ⚛
When something is rendered for the first time, the componen...
re: React Beginner Question Thread ⚛
I see why you might find this cumbersome although to be hon...
re: React Beginner Question Thread ⚛
Yep, that’s about it. The interesting difference from “nor...
re: React Beginner Question Thread ⚛
Same problem that functions are trying to solve in regular ...
re: React Beginner Question Thread ⚛
Hey! I don’t think there any “best practices” because the f...
re: React Beginner Question Thread ⚛
What are your thoughts on Preact, how does the React team/...
re: React Beginner Question Thread ⚛
Agreed with that. There's also good community content here:...
re: React Beginner Question Thread ⚛
Are you split up into multiple small teams that focus on a...
re: React Beginner Question Thread ⚛
This is a tough one; I think it really depends on whether y...
re: React Beginner Question Thread ⚛
I tend to use class properties: class Button extends Rea...
re: React Beginner Question Thread ⚛
I don’t quite understand the question. I think people take ...
re: React Beginner Question Thread ⚛
When we use state and lifecycle methods, the component iden...
re: React Beginner Question Thread ⚛
Yeah, I work on React full-time. I suppose engaging with co...
loading...