chantastic.fm

73: Brian Vaughn on Fast Refresh for Web and Concurrent React Dev Tools

Episode 73 · November 21, 2019 · 00:59:53

Hosted by chantastic · With Brian Vaughn

Sponsored by G2i and Infinite Red

Download MP3 · Jump to transcript

Brian Vaughn joins us for an update on React Developer Tools.

We talk about Fast Refresh for the web,
New developer convienciences around codemods,
And new React Dev Tools features to help you profile, suspend component trees, and find your way around unfamiliar React apps.

This chat is guaranteed to help you be a quicker, happier, more productive React developer.

Featuring

Links

Sponsors

G2i

G2i is a hiring platform for remote developers devoted exclusively to React and React Native. We vet, you get hired. g2i.co

Infinite Red

In over your head with a React or React Native app? Infinite Red can help. They're React Native core contributors who've been designing, building and shipping apps for over 10 years. reactpodcast.infinite.red

Transcript

[00:00:00] Michael Chan: This is React Podcast. I'm Chantastic. This week, Brian Vaughn joins us again for an update on React Developer Tools. We talk about fast refresh for the web, new developer conveniences around code mods, and a bunch of great features now available in React developer tools to help you profile, suspend component trees, and even find your way in React apps you're unfamiliar with. This chat is guaranteed to help you be a quicker, happier, more productive React developer, or your money back guaranteed. Today's episode is brought to you by the fine folks at G2i and Infinite Red. As a contracting web developer, do you find the back and forth of coordinating development work and finding new business challenging? That constant tug of war is what took me out of the contracting game. I hated interrupting a good code flow to take a sales call and send invoices. I just wanted to work in a React app and get critical features into customers' hands. G2i lets you do both of those. It's contracting on easy mode. They market you and your skills directly to companies. They manage all logistics, contracts, invoicing, and payments. Meanwhile, you get personal support from their incredible team. And best of all, you join a collective of talented React and React Native developers to help you through the most challenging problems. If you're a contractor, don't do it alone. Partner with the amazing people at G2i. Visit g2i.co today, apply, and find opportunities you'll love. G2i. We vet, you get hired. It's that simple. Infinite Red builds beautiful, functional apps in React Native, and they want to help you bring your ideas to life. Got an idea you want to share with the world? They can build it. Got an old app that's all kinds of busted and need help making it agile again? They can help you fix it. Use their expertise in design, mobile, React Native, Ruby on Rails, Node, Phoenix, Elixir to get your app back on track. For a limited time, listeners of React Podcast get 2 tickets to Infinite Red's Chain React Conf when they start a new project. Chain React is North America's only React Native conference, and attendees are saying it's the friendliest, most educational conference they've ever been to. At the conference, you'll get to meet the team and see why they're the React Native industry experts to take your app the distance. To start a project, go to our very special URL, reactpodcast.infinite.red. Get 2 tickets to Chain React Conf 2020 and build a beautiful, functional React Native app with Infinite Red. Brian Vaughn, welcome back to React Podcast.

[00:03:11] Brian Vaughn: Thank you.

[00:03:12] Michael Chan: I'm always excited to see you at these because you you're very you have a very calming presence. And it's uh it it's nice because there's a lot of frantic stuff happening, but you know, you're kind of just like chilling. You're you're working on talks, you're in the hot tub every night, taking it easy.

[00:03:28] Brian Vaughn: Yeah, that's uh that's true.

[00:03:30] Michael Chan: So you gave an amazing talk today, and I kind of just wanted to recap. Um I know last time we did an episode, um we talked a little bit about your history with open source and and whatnot, and so we'll link that in the show notes, but um I just wanted to really kind of get into what you've been working on the last year to help React developers, both today and as they transition their app into a more like concurrent React world. Um, so could you give me an overview of kind of just the, the main topics that you touched today in your talk, and then we'll kind of dive into each of them?

[00:04:06] Brian Vaughn: Uh, sure. Um, the story that I think describes the the stuff we've been doing in that regard in the last year is basically we've been trying to sort of improve the developer experience for uh React developers. And that's sort of a- I think of it in sort of 3 categories. Um one is just helping you write your code faster. Um so in that sense, the work that uh Dan's been doing with uh Fast Refresh has been a huge performance win, I think productivity win. It's out for React Native now, but it'll be out for React DOM really soon. So we've got some webpack and some Parcel integrations, both like well underway. Way. Um, and hopefully this will make its way into Create React App and Next and all the other like big tools, I hope. And DevTools has a bit of a, a part in that story too with like editable, um, props and state and, and all that stuff. But I think DevTools probably, um, falls even more so into sort of like the second category, which is just helping you sort of maintain, debug, profile, that sort of thing. Once you've got your- Your components written in an app, making more sense of that. And that's a, I think a big part plays into our new APIs, um especially concurrent mode and Suspense, because a lot of this, um used to be that React would just do sort of top-down, uh like just depth-first, and you can sort of in- in- visualize how that works. You can think about like your, your tree and you know, well, like, like it, it does this thing and then all the way down and then all the way down. Yeah. You can think about that. But with Suspense and concurrent mode, it's, it's often doing things out of sequence. Um. Maybe in or leaving work with the cooperative scheduling stuff. So DevTools, I think, has a really important role to play there and just sort of giving you a nice, um, structured way of just presenting that information in a way that you can make sense of. And we have a lot more work planned there, I think. But the profiler, um, for instance, and some of the Suspense tools as well have been like, I think, really important.

[00:06:00] Michael Chan: Yeah.

[00:06:00] Brian Vaughn: Um, to help you make sense of that. Um, and then lastly, we, uh, We haven't done a lot of work recently on this, but Sanyal did some really nice work making our code mods just a one-liner.

[00:06:10] Michael Chan: Nice.

[00:06:11] Brian Vaughn: So you don't have to, before, I think you had to like npm i -g, or you had to install them locally and throw 'em away or something just to run them. And now it's just a single, makes use of npm's npx command. So you can just run 'em as a one-off. And, uh, we hope this, uh, will help people. Um, we don't like making breaking changes. We try real hard to avoid it. Sometimes you have to do it. But um if we do it, uh if it's possible, we'll make ways to automate it too. And I think the the code mods are an important part of that story. So we just want to keep everyone moving forward as much as possible. Not to say that you should always be on the latest version. We if you have a version of React, an app built on v14 and it's working for you, that's great. But um in as much as possible, if you're doing new development, we hope we can keep everyone on the latest and greatest. 'Cause it just simplifies a lot of things and we think things are getting better, hopefully. So yeah.

[00:07:05] Michael Chan: I think so too. And I thought, I thought that was such a- when you, when you said that, that you were like kind of leveraging npx to do this, I didn't, I hadn't, it hadn't crossed my mind that just that slight shift makes them so much more approachable that you can just kind of like run this code and just kind of see, right? Like even just like see what it does, see if it's gonna help you, um, without having to do a big install or or or whatnot, you just run it and and there it is.

[00:07:32] Brian Vaughn: Yeah, it's pretty clever too. It has some checks that I didn't demo, but it'll, it'll uh stop immediately and tell you if like your Git repo has an uncommitted change. So it's like, it's really handheld, um so that really you should be able to run it and then git diff and see exactly what's changed. And if it's not what you want, throw it away. And uh I think it's— uh we we've made it as easy as we can make it. Yeah.

[00:07:52] Michael Chan: What are some of the um the recent things that code mods have been really critical for you as you've um kind of updated the The Facebook source code?

[00:08:02] Brian Vaughn: Well, the most recent one's the lifecycle thing. So class components uh are really tricky um for a lot of reasons. It's really easy to sort of violate React's rules in terms of uh no side effects during render is the main one. Class components, it's really tempting to think of, well, it's is it a side effect if I'm modifying a quote unquote private variable? And it is. Um and we uh We started early on thinking, well, we can maybe make class components concurrent mode safe, and eventually we realized you just can't. Um, but in particular, some lifecycles are particularly problematic because we, we sort of audited Facebook code, we audited code on GitHub, we saw a lot of patterns, HTTP requests being sent from these things, uh, all sorts of stuff. And so, um, class components are sort of inherently, uh, footgunny. But these particular lifecycle methods, by which I mean componentDidMount, componentWillReceivedProps, and componentDidUpdate, were just so many problems that we saw. So we thought, okay, gotta discourage their use. We don't want to get rid of them entirely because, uh, well, we do, but we're not going to, um, because they're, you know, like, like I said earlier, if you've got an app that's working well for you and it's, uh, Uh, and you're not planning on leveraging these new APIs, then we don't want to make your world painful. But we want to make sure that they're- it's in your face that this is a conscious trade-off you're making. So as part of our deprecation strategy, we always try to give you a couple of release cycles worth of warnings that things are coming up. And as long as you stay on top of fixing the warnings, then upgrading each version should be smooth. So for the life cycles, we uh We wrote a code mod that um renames them with an unsafe prefix. So uh if you want to keep using them, you can keep using them. But the fact that they're unsafe is like right there in the name. And we ran that on a bunch of Facebook code and it updated, I think, almost 8,500 files. So it was a big diff or a couple of diffs. But um but yeah, that was really helpful.

[00:10:06] Michael Chan: Now, one thing you said from stage that was um really interesting to me and I wanted to flesh out a little bit is that When you as the React core team make uh breaking changes to React, that you are responsible for updating Facebook's codebase. Could you talk a little bit more to that?

[00:10:23] Brian Vaughn: Yeah, um, Facebook's a— uh we have a lot of people in engineering and uh we have a lot of projects that are stable and like not actively maintained even. And so uh it would be sort of silly for us to say, well, we're gonna rename these lifecycle methods Um, there's maybe 100 software products. I don't even know how many there are. So we're gonna open 100 issues for 100 teams and say like, you have until this date or otherwise your app will break. And inevitably, uh, you know, a lot of the projects won't have teams anymore. And so, um, the strategy I think that the React team has had before I joined, um, but that we still have, is just that we sort of, um, we're gonna drive these updates. Um, and that'll, it'll do a bunch of things. It'll sort of, we've got skin in the game, so like it helps keep us, uh, a little bit balanced in terms of like, you know, I want to deprecate this thing, but I understand how painful it is for everyone because it's painful for me. Um, and it's also just practical. It's like- Sure. I have the context on why this needs to change. Uh, I can probably make the change in a lot of cases best. Um, so the strategy we generally take is, uh, It depends on the type of change. In the case of the life cycles, we run a code mod, fix some merge conflicts, run it again a week later, and it's, it's kind of straightforward. Um, sometimes though, it's, it's less straightforward than that. And then we'll do things like we'll add warnings, and then Facebook has a system for like logging and aggregating these warnings with the call stack so that they can like pin them down to specific locations. And then we'll add a warning and we'll check a week or two later, and if it's fired thousands of times or more, then okay, this is a serious thing. If it's fired a couple times, then we just find and fix those locations. And so different types of changes have different strategies. And sometimes we will eventually file a task with the team and say, you know, this is a bad pattern.

[00:12:14] Michael Chan: Yeah.

[00:12:14] Brian Vaughn: We've like stemmed the bleeding, but you need to go on and do these things to fix it. But we're, uh our team is always sort of the first uh tier of of of the change. Um. And I think this is probably a big reason why- well, I think it's a big positive factor on React's open source experience, because, uh, um, yeah, it just keeps things measured and it keeps the upgrade cycle, I think, relatively sane.

[00:12:40] Michael Chan: Yeah.

[00:12:41] Brian Vaughn: Um, there are some upgrades that are, uh, you know, there's still some noise. Sometimes there's some warnings and things, and I understand that's irksome, but, uh, at least you know the core team has gone through all of this. And so it's- we've done our best to, uh, If we've made a change that's a little annoying, there's probably a good reason for it because we've had to deal with the annoyance for the couple of months preceding the release. So, uh, yeah.

[00:13:02] Michael Chan: Interesting. Interesting. So these code mods that you're publishing, um, are actually things that you have used in migrating that feature in your own codebase?

[00:13:10] Brian Vaughn: Yeah, at least most of them. I don't know about all of them, but yeah. Um, like the, the createClass one, definitely the PropTypes one, the lifecycle one. I've ran both of those. Um. Yeah.

[00:13:23] Michael Chan: Cool. Now there's always this kind of like running tally about how many components Facebook uh actually has. Do you know what that number is these days? I don't know.

[00:13:31] Brian Vaughn: I remember a couple of years ago at React Conf, I think we were saying like 40,000. Mm-hmm. Um, but man, that's been so long ago. I don't know. I mean, like I said, I think the, uh, the createClass alone was 20,000-some uh files it updated. And you know that a file can be multi-component.

[00:13:50] Michael Chan: Sure.

[00:13:51] Brian Vaughn: And plus there's all the ones that didn't, that were already using ES6 classes or functions. So I don't know.

[00:13:57] Michael Chan: A lot of components.

[00:13:58] Brian Vaughn: I wouldn't even hazard a guess. A lot of components. Yeah.

[00:14:00] Michael Chan: Awesome. Now, uh, another big thing that you've been working on is, uh, or you and Dan have been working on is, uh, fast refresh. And could you give us just like a summary of what that is, how it's different from hot module reloading and, um, and And we can talk about the integration after that.

[00:14:18] Brian Vaughn: Yeah, this is mostly Dan's thing. I've just been reviewing the code reviews for the other PRs for the most part. But, um, so there's like a bunch of things out there in this space. There's like hot module reloading, live refresh, hot reloading, React Hot Loader. There's like a half dozen with like these words mixed up. And I think they, um, a couple of-

[00:14:37] Michael Chan: It's like a lib libs type of situation. You just mix 'em around until you get-

[00:14:40] Brian Vaughn: It's like a random module generator. You just throw in a few names. I think they all share a couple of, uh, well, so for one, they're all, they're all great. They all are trying to tackle like a very real uh productivity problem. And they've had a lot of like sweat and tears from the community, including folks like Dan who started the React Hotloader. But they all have um this like inherent uh struggle that they're uh sort of user space third party things, um, and it's just inherently hard to do some things right at all, but especially over time with different versions of React. And so the, the, the, the tension you generally have, I think, between the, the two, or the two types of tension you'll see in these third-party solutions are one, like the, the live refresh or live reloading, whichever that one is, reloads the whole page on change. And so that one's like, that one's good in that your code is always going to be consistent in the latest version, but it's bad in that like you're losing all your state each time. Sure. It's better than you refreshing manually, but only like only somewhat versus the other one, which is more of like the hot module reloading, React Hotloader uh solution, which tries to just reload parts of your tree and preserve state, but then very frequently gets into like kind of conflicted state or inconsistent tree. And then you're seeing a bug and is this a bug in my code or is it a bug because of the patched components? And it's hard to tell. So you use this tension. So the nice thing about the new fast refresh is that it's- we basically made use of the same mechanism that DevTools uses, this hook where React- I say React, but what I really mean is a renderer built on the React reconciler. Um, part of this package knows to look for and inject itself into um DevTools or the fast refresh environment and say like, here's some internal methods that you can have, and then the two talk to each other. And so, um This is, uh, it's better than trying to hot patch things because it gives some, uh, it's, it's, uh, it's intentionally designed that we expose these methods. So it's sort of like our, uh, protected API, I guess. I don't know. Um, and it's built to handle these cases that were problematic. And we sort of intentionally just sort of said, nope, classes are out of scope because we just can't do them. They, they get broken in too many ways. But hooks, um, by their design are sort of meant to work with things like this. And so I think, uh, you now have sort of the best of both of the open source, uh, or the third-party strategies where you get, um, consistency is like a strong guarantee. Mm-hmm. Um, and also you're just refreshing the subtree, um, and ideally without even losing state unless there's a need for that. And so it's a much better iterative, like prototyping and and changing things experience. Super fast too. It's really nice. I'm just, I'm really excited for the DOM world to get it, 'cause I've played with it with React Native some, and it's, uh, it's a lot of fun.

[00:17:35] Michael Chan: Yeah. Now you were, you showed a really interesting graph about adoption at Facebook, um, with, with this tool versus others. Can you talk to that?

[00:17:42] Brian Vaughn: Yeah. So what, what the, um, the sorts of things we typically do, um, I did it for DevTools, Dan did it for Fast Refresh. When we make a tool like this, we'll make a workplace group. So workplaces like Facebook for Business, um we use it at Facebook. We'll make a group. So I I made a React DevTools V4, Dan made a Fast Refresh group. We'll say, hey, like we're doing this new thing. Um we think it's exciting. We'd love for you to try it. Uh if you'd like to try it, join this group and that will opt you into an experiment, which will install. So in my case, I have a Chef script that like installs these builds of DevTools I have locally. Oh, interesting. In Dan's case, it would opt you into the fast refresh by default if you're a React Native developer. Um, and now we're also using it on FB5 for, for folks working on the new Facebook. So we have a DOM version, but it's very much built into Facebook's module system. Gotcha. But oh man, it's gonna be good when they open source all that. But so people join these experiments and, uh, they're sort of the people who are willing to take the rough edges to get the latest features. They share feedback with us. We iterate. If ever anything breaks really bad, you just leave group and you're out of the GK, or you can also blacklist yourself in the like admin tools. Yeah. And so we sort of get this feedback internally. So in the case of fast refresh, um, when Dan uh initially added it, he made a post saying, um, it's here. Uh, I don't know how well it works, so it's not gonna be on by default, but you can turn it on and then we track. Uh, and clearly, I want to say clearly, we don't track anything in open source, but we do track internal usage of internal tools. So we can see like Are they working? Like, do they suck? Um, and in this case, we saw sort of organically within a couple of weeks, more than half people turned it on and left it on, which is up from like 15% before. So it's a big shift. So then we, uh, then Dan said, all right, now it's on by default. You can turn it off. And almost no one has. So- Wow. We feel pretty good about it. It's like in the upper 90% of people that are in, in, uh, that are using it. Um, so we think that's a good indicator that it's gonna work well for open source folks too. And I. So far, I think it is. I haven't heard much uh negative chatter since the React Native release.

[00:19:49] Michael Chan: Well, it definitely seems like in React, the React Native world, it definitely seems like something that people are bragging about over like the uh those of us that work on the web. Like, hey, we have fast refresh and you don't. Or at least that's what that's what I've seen. Um, and so, uh so I'm excited to get it and and and experience that. Now, I know that this is um And I might have missed this a little bit. I'm still trying to tease this out, but this is integrated into React, this, how this works. Is that right?

[00:20:18] Brian Vaughn: Yeah. So fast-refresh is a, an npm package. It lives in the monorepo, the React monorepo in GitHub, which is where DevTools lives and it's where all the React, uh, like core packages live and a bunch of other miscellaneous stuff that's related. And it's got sort of two pieces. One's a plugin. That you can sort of integrate with Webpack or Metro or something. And another one is a runtime. And the runtime is the thing that uses a similar mechanism to DevTools where, um, React will like in- uh, inject part of itself into this thing and give it some, some methods to like, uh, to say like, oh, like, so render this thing now, it's changed, or render this thing. DevTools works really similarly. Yeah. Is that-

[00:21:02] Michael Chan: Yeah, yeah, yeah. No, no, that makes sense. So if someone wanted to, let's say like, I know that right now you have it working in Webpack, Metro, and Parcel. Uh, if there was another bundler uh that gained popularity like next week and kind of came on the scene, um, how much work is it to kind of get this into- to to add that bundler to the—

[00:21:22] Brian Vaughn: Yeah, I don't think it's a ton of work to integrate with a bundler. I think the reason why the, um, the Metro, uh, Webpack Um, sorry, not the Metro, the Webpack and Parcel, um, PRs are ongoing. Is the, has been a more of getting the, the experience of like the overlay in the case of an error, like really polished and getting the loading animations polished, these sort of meta things that like make the overall developer experience feel nice. Um, I think that, uh, when I tried the Webpack version before my birthday, so like it must have been 3 or 4 weeks ago, um, it was like already kind of working. There was some cases it didn't handle, but like the overlay wasn't working, so like it didn't show you where the source code error was and there was some like source map things to iron out. So it's more of that. But I think, um, especially once these land, then there will be at that point like 3 reference, uh, integrations that I think would make it even easier. Um, right now I think the goal was just sort of to feature parity with the Metro version.

[00:22:21] Michael Chan: Yeah. Yep.

[00:22:21] Brian Vaughn: Um, but taking into consideration like some of the different, uh, like capabilities and stuff of- I think actually the source map stuff was a particular challenge. I don't remember the specifics why, but I think, uh, the more reference implementations, the better.

[00:22:36] Michael Chan: Yeah.

[00:22:36] Brian Vaughn: But I think actual integration is pretty easy, especially if you don't care about the slick overlay, then actually just hooking up the change and reloading it is not, it's not too much work.

[00:22:43] Michael Chan: Cool. And the overlay would be familiar to anyone who's used uh Create React App before.

[00:22:48] Brian Vaughn: Yeah. Yeah. Similar to that. So Create React App already has an overlay that shows you when there's a syntax error and the exact lines it's at. And this is making use of that mechanism. I think part of the challenge too is that that mechanism is in the middle of a refactor. So there's just kind of a couple of moving pieces at once. And the two folks that are working on it are both- this is not their full-time job. And so they're just like contributing. And Dan and I have both been busy and I haven't- I intended to help and then I got caught up making a conference talk.

[00:23:15] Michael Chan: There's work to do.

[00:23:16] Brian Vaughn: But, uh, but yeah, I think, uh, it should be close and, uh, it should be much easier to copy for a new- I mean, I think the, the- I only just found out about the Parcel PR like 2 days ago.

[00:23:29] Michael Chan: Oh, cool.

[00:23:29] Brian Vaughn: So that was just going in parallel and we didn't even know about it. Um, but that's great cuz Parcel's really cool. So I'm excited to actually dig in and look at that PR when I get a chance. I haven't yet.

[00:23:37] Michael Chan: Yeah. So does this, um, is there any caveats that people should be aware of in terms of like how this works with, um, function components and hooks versus, you know, class components, et cetera?

[00:23:49] Brian Vaughn: Uh, sure. Um, I guess there's, there's, there's 2 cases. Um. When your code changes for a component, um, Fast Refresh is gonna reload it, uh, or re-render and update the page in the DOM or the native app or whatever, uh, environment you're rendering to. Um, the question is whether it'll preserve its state or not. Um, so with class components, it's just, we're never gonna do that because we've just admitted that it's too many people have tried on too many efforts and there's too many edge cases. Um, class components are just hard to get right. Um, but function components generally will just re-render and preserve their state, just like if the parent, um, like re-rendered and you didn't memoize it or something. So that's nice because that means just that small part of your tree, and then it won't even go deep if there's, uh, equality. Like if the, if the should, should render memoization stuff checks, then React only render a very small part of your app. So it should be super fast and also you won't lose your state. Um, the caveat where you would lose your state are some of the cases I covered in my talk where, um, we have some heuristics that just say like, uh, do we think the state is like invalid? And at this point, so like, did you add new hooks? Did you pass a different value? I didn't mention this in my talk, but we also track the initial value you pass. Interesting. So if you pass a different initial value, well, we're gonna do probably the safest thing. Uh, the, the. When there's a chance that it's like, do you choose between safety or convenience, we opt for safety. So in that case, we will reset the component. So it's just like we unmounted and remounted, and then it'll fully render the rest of the tree beneath it. So you'll still mostly preserve your application state because all the props and state above it will still be preserved. So in many cases, this will still be a very nice refresh experience. It's just if there's local component state, it would get reset in that case. But I think that kind of case is probably, uh, well, A, that's the right thing to do. Um, there's no other really intuitive thing you could do, but B, that's like a less likely case because mostly I think, well, a lot of types of iteration is like, oh, I'm gonna add a div, change a style, change a class name, change a color, change a label. And those are all quick refreshes without any state loss. So.

[00:26:05] Michael Chan: Interesting. So if I understand correctly, you're kind of memoizing these components by their signatures, which includes the, like, the, um, the, the name of the component, um, any, uh, hooks that it uses, and also the initial state that you've given to those hooks.

[00:26:21] Brian Vaughn: Yeah, every, every, um, that's correct. Each, each, each component, uh, has some metadata built up about it, which includes, like, its hooks, um, which hooks, uh, their initial values, and their variable names. Uh, and that's because also it's like, if you rename a variable, that's kind of an implication that you're changing the use of it. So this case of like, we're trying to be safe over convenient. But, um, but yeah, uh, I think from my own, uh, anecdotal experience editing components for things like dev tools, like your hooks are generally pretty stable and you tweak all these other meta things that are unrelated to state.

[00:26:58] Michael Chan: Sure.

[00:26:58] Brian Vaughn: Maybe, maybe controlled by state, but don't control state. And so, uh, all those edits are, are the ones that fast refresh versus the ones that like, still, it's still quite fast actually. Fast enough.

[00:27:10] Michael Chan: Awesome. Well, now another big thing that you were talking about was all of the, um, all the work that you've been doing in DevTools. And we talked a little bit about what you were doing last year and with the DevTools and the profiler, but I feel like you've really just kicked it up a notch and there was just so much stuff that you've been, you've been adding. Um, with, to start us off, like with concurrent mode kind of like over the, over the horizon, like with people exploring it. Now, what are some of the things that you've added into DevTools to make working with React in a concurrent world better?

[00:27:47] Brian Vaughn: Yeah, I think the the profiler is one of the biggest ones at the moment because um if you think back to to Sync React, like um before we had these— uh well, before we had concurrent mode, but also even before things like Suspense. The way the the app renders is very predictable and easy to think about. Um, maybe with the caveat of like if an error was thrown, but still it's it's pretty easy to think about. It's just a a chain set of synchronous function calls. Um, you can hit record in Chrome's or Firefox's profiler and you'll see something like a flame graph that actually exactly mimics the mimics the render order. Um, now it's now it's different. Um, now Well, I say now, I mean, if you're using concurrent mode, but even if you're not, you know, React, if there's suspense, we might yield, it might start working on some lower priority work. Even if there's not suspense, it might yield to let the browser paint and process other JavaScript. There's all these things that could be happening, not truly in parallel, but interleaved. And this makes the, the default browser tools, um, pretty confusing to use. Also, React's implementation in v16, uh, sort of with foresight of these APIs we're gonna be working on, it's very different than the old- what we came to call the old stack reconciler versus the new fiber-based reconciler, which is an iterative approach, because we needed to be able to yield and restart with very minimal overhead. And so, um, the way that our code is structured is to make that very efficient, but as a side effect, it makes the, the, the profiling kind of confusing, because if you're looking in, like, the browser's native performance profiler, the call stack is usually gonna be like 3 or 4, or I don't know, some number of React function calls and then one of your components and then a different one of your components. And so what is like, which button is this? Which, what is this? I don't understand. Sure. Um, that's a very confusing ex- experience. We do use the user timings API to give, uh, in dev mode at least, to give labels. So you at least see some structure of the tree, but it's still kind of confusing. So the, the main thing the profiler did was sort of, uh, give you a cohesive, um, view of each of these. Hmm. I didn't say the word commit. I should have. React does work in a couple phases. I think a couple people at the conference mentioned this, but we have a render phase, which is where we actually run your functions. We, um, this is where we recurse the tree and we render everything. We build up a set of, well, what do we need to add, update, delete? Um, this is the expensive amount of work that we do, and this is also the thing that we yield while doing. This is the thing that we throw away if we get higher priority work or if there's an error. But when we get the sort of set of changes we need to do, so we need to create a few elements, update a few styles, append something, then we do this in what we call the commit phase, which is a very optimized phase where we make side effects in the browser or the native app. Profiler gives you um sort of a nice summarized view of each of these commits. And it says like, oh, hey, when the DOM updated here, um, these 12 components rendered and they took this amount of time. And you can drill in and see, well, why did they render? Oh, it's because this prop changed. How long did this one take? What was the longest one? Things like that. So this kind of, uh, a little bit glosses over the like confusing concurrent async bits. Sure. And shows you like a nice summary view. Uh, so I think that that's a big help when you're performance profiling your app, but it's not enough. Um, we've, we've noticed, uh, working on the new Facebook, for instance, that there's like a lot of information that falls between the cracks between the two, the, the profiler of DevTools and the browser's profiler. Yeah. So for instance, if I'm looking in DevTools profiler, I might see two commits, and DevTools is gonna show me this commit happened like 3 seconds into when I started profiling, and this one happened 5 seconds in, but like what was going on in between? I don't know. Um, was it, uh, other JavaScript? Was it, uh, I was waiting on images to load or like expensive network requests? Was it that like something was taking a long time to render? So there's this extra information that's missing. So we have this idea, there's an issue I opened on the GitHub repo called root events, I think. But there's this, um, the idea I have, um, that we could add some, some new, uh, events. That DevTools could consume from React that are basically like, uh, sort of higher level that say like, okay, React is now starting to work and oh, now it's stopping because I'm yielding, or it's stopping because this component suspended, or it's stopping because I'm committing stuff, things like this. And then we could have a new view that's kind of like the profiler and it's probably started and stopped by the same recording mechanism, but it's kind of like a timeline view. Um. Where the x-axis is sort of time and the y-axis is uh priority, or or you can think of it like a thread.

[00:32:36] Michael Chan: Sure.

[00:32:37] Brian Vaughn: So here you could see, okay, well, React was rendering um at the highest priority here, here, here, and then it stopped because some component uh suspended to fetch some data. And then, oh, maybe it started rendering at some lower priority here, or it did nothing. And there, you know, oh, like other JavaScript was running or or whatnot. So we think like a timeline view of this could be like another extra piece of this picture to help inform what's going on with these new APIs.

[00:33:06] Michael Chan: You're working with the Chrome team to to to work scheduling as a concept into into the browser. And um I do you feel like there's a future in which, you know, maybe some of these these APIs actually go get into the browser and then we actually start seeing these end up as um profilable things inside of the default uh DevTools?

[00:33:29] Brian Vaughn: Yes, I think that some scheduling primitive is definitely a great candidate for the browser. So right now React has a package that we published to npm called Scheduler. Um, this package is basically— uh we made the observation, again, working on the new Facebook, that okay, so React, um, we want it to be cooperative and to be a a a good, uh a good neighbor in the browser and yield every once in a while so that it doesn't hold other things up. Mm-hmm. But, uh, sort of tragedy of the commons style, if React is yielding, then other things might get greedy and slurp up all the time. And these other things could be like someone set an interval on the page that's just doing something, but it's like eating up a lot of time. Um, uh, there's all sorts of stuff that happens in the- so in the old Facebook design, React was only parts of the page. There was a lot of JavaScript that was not React, but even in the new Facebook design, there's parts that are like Maybe you fetch a resource, you set a timeout, you do something that are sort of like orthogonal to React. And how do you cooperate with React in this case? So this concept of a scheduler is pretty important for any non-React code, application code, third-party code, other frameworks, so that all of these bits can cooperate. But then it also goes a step farther. Um, like maybe I'm doing some work that requires me to like fetch uh some JSON response from a server at a certain priority, like, which means the browser says, okay, like you're important enough to work on now, do your fetch. But when the response comes back, what's the priority then? It's, I don't know.

[00:35:00] Michael Chan: Sure.

[00:35:01] Brian Vaughn: Um, if it's an image request or network, what's the, so like these are things that only the browser can do. Mm-hmm. So there's definitely an API there that um we can sort of roughly polyfill, but not, not really with the propagation unless you're willing to override all the global APIs to like fake it. So there's definitely some space there. So, um, we've been working with the, the Chrome team, um, uh, to sort of talk about what this is. If you think ahead to something like this being in the browser, then yes, there's definitely a new set of like built-in developer tools that like this needs to be exposed. So like when you're profiling JavaScript and you see an event and a call stack, like what was the priority of this thing? This probably means some, like maybe some substantial changes to their tooling. I don't know what that'll be like. Maybe that'll be a- 4th or 5th JavaScript profiling tab in the Chrome. They have so many of them. But I think just like right now you have the, the, um, the built-in JavaScript profiler and the React profiler. I think you'll probably still have these new primitive profiling tools and a React one because React, when React also has its own set of things. So like right now, React will schedule a callback for itself within the scheduler at whatever the highest priority is. But then it has its own priorities within that, that it does work on. So there's sort of like a, a secondary set of priorities it's working on and also a lot of React-specific isms that like, it makes sense that we could expose them in a more intuitive, meaningful way within the React DevTools proper. So I think there's probably going to be two sets of new stuff. Mm-hmm. Um, as this goes forward.

[00:36:33] Michael Chan: Interesting. Now you said something that kind of sparked something for me that I hadn't really thought of before with regards to Scheduler, but One of the benefits of um pulling it out from React and having it be its own own package, um apart from other libraries um maybe being interested or using it, is really your own JavaScript. So you can you can use Scheduler directly to coordinate your own JavaScript that, as you said, is orthogonal to React in a way that will make those cooperate and uh Cooperative uh concurrency.

[00:37:10] Brian Vaughn: Okay.

[00:37:11] Michael Chan: Is that the-

[00:37:12] Brian Vaughn: I think cooperative scheduling is maybe the one I've heard. But yeah, yeah.

[00:37:16] Michael Chan: I think that's the that's the word I was looking for before. Um, so you can you can create— uh you can use Scheduler now to um make your JavaScript code uh coordinate with the um with React.

[00:37:28] Brian Vaughn: Yeah. Yeah. So maybe I've got like a maybe I'm creating a searchable index of something. So I wanna like make a type ahead and I want it to be searchable and this, I wanna process a chunk of data and it's a big chunk, so I wanna break it up into time stuff and I wanna, well, I could just like, you know, use RAF or something. Mm-hmm. And just chew up a full frame each time and yield. But now I'm like slurping up all of React's time. So you could use the, a scheduler for something like this. So like I'm, this work has some priority based on my application. I don't know what, what this is, but like conceptually there's a priority and it's like, okay, I'll work on a little bit and then I'll yield back and say, hey, call me again when this priority of stuff is up. This is essentially what React itself is doing. So, um, yeah, I think, I think you could potentially use this uh for that. You could also use it. Um, we have some wrappers around this right now for some patterns in concurrent mode React. These aren't super finalized, but like conceptually, sometimes you want to do an update in uh sort of two parts. Like the DevTools is an example of this. When you are in the components tab and you're using your arrow keys or you're clicking something, you're changing the selected item, which has two effects. One, it like changes the highlighted, um, selected row, but then secondary effect is that it also changes the selected props in the right pane. But the right pane are actually suspense-driven props where we're actually talking over a postMessage request to a different memory space and saying like, tell me about this thing. So that's asynchronous. Uh, one of the rules of React that we will warn you if you violate is you don't want to suspend on a high-priority update because that's gonna be a bad user experience. Like, if it's really important, like responding to mouse or keyboard clicks, and then you suspend, then that means you're not gonna be responsive. So there's this two-update pattern that we encourage where you, you update initially and you say like, oh, okay, I'll do something that shows that I've responded to your interaction. In this case, I'll change the background color. And then at a lower priority, so React will batch it separately. I'll do my Suspensey thing. So, um, I don't know what the final API will end up for that is, but right now the one I'm using in DevTools is using like a, an explicit, like, update the state at this lower priority.

[00:39:41] Michael Chan: Okay.

[00:39:41] Brian Vaughn: I think we have actually recently added a hook to help with this.

[00:39:45] Michael Chan: I know that there were two hooks. There's like useTransition. Or as of right now, uh, 2 hooks were merged that are like useTransition and then useDeferredValue.

[00:39:54] Brian Vaughn: Yeah, I think useDeferredValue is uh analogous to the update pattern that I'm talking about.

[00:40:00] Michael Chan: Okay.

[00:40:00] Brian Vaughn: Um, but conceptually, uh, you might use the scheduler in some vaguely related way to like do different uh updates. I don't know what the final API for that will look like though.

[00:40:12] Michael Chan: Yeah. And, and just to be clear, like all the stuff that we're talking about is under that like experimental uh branch flag release cycle right now?

[00:40:22] Brian Vaughn: Uh, yeah, I think the schedule- I think the priority stuff is just prefixed with unstable_. I don't know what the status of it is in experimental. That was all very recent. Um, and I was distracted by conference talk stuff. Of course. Yeah, I read the blog post, but I think the- I think the experimental branch has two things that are that were under- unstable underscore that are now not. And I think they're both like APIs and to like creating the uh async root, essentially. I don't know that it has anything to do with the priority stuff, but I don't know. You might know more than I do if you've been following in the last couple of days.

[00:40:59] Michael Chan: So when you, um, so when you come into those moments where you, um, you said that there's an error and I've been tinkering with this stuff a little bit and I have run into that error. What's the, like, what's What's the what's like practical solution for the for for solving that?

[00:41:13] Brian Vaughn: Which one are we talking about?

[00:41:15] Michael Chan: The um

[00:41:15] Brian Vaughn: like don't suspend on a high-priority update one?

[00:41:17] Michael Chan: Yeah.

[00:41:17] Brian Vaughn: Ah, yeah. Well, the the the the solution to solve it is one of these patterns that I've talked about where— so like the the the key is that we want— um we we think it's important for certain interactions to happen within a small amount of time. So Alexandra's talk earlier today mentioned, I think, that there's like this window of time where either the material guidelines, I think, says like you should respond to certain types of gestures and events within less than 100 milliseconds so that they feel immediate. Anything longer feels sluggish. So we have similar, like, uh, heuristics for how quickly should your app update in response to, um, keyboard input or mouse input. Um, and so the observation with the Suspense stuff is like, well, there's this window of some number of milliseconds that's pretty small where the human- Brain doesn't really perceive if there's some lag, but afterwards you notice that it's off. So we want your app to render within that amount of time. And if it has to fetch a network request or something, it's like probably not gonna- so you have a couple options. One is the sort of pattern like Yann talked about today, where it's some pre- uh sorry, not Yann, Joe talked about on the Relay team, some prefetching. Mm-hmm. Um, that could be one way. Um, another way is that you sort of update your your React app in sort of two phases. The one is the super fast phase, which maybe shows the button in a pressed state or shows a background highlight or shows a loading icon, whatever it is. And then the second one, the, the lower priority one, is the one that actually initiates the Suspense. Um, the reason for that is that React can quickly update the thing to keep it feeling responsive. Mm-hmm. And if the resource comes back within some small amount of time, it'll just do the second render immediately. And if it takes longer, we can show a secondary like transition spinner. Like what that is depends on the UI we're talking about, the app. But that's the that's the recommended pattern.

[00:43:07] Michael Chan: Gotcha. So so so when we see that error, what it's indicating is we need to- there's a possibility that we could be waiting a long time for for something to happen. And so we need to be thinking in more phases, which is show something right away that you registered what the user's asking for. For. And then kind of consider the other phases in like a, you know, like maybe a lower priority, to borrow the language, update.

[00:43:32] Brian Vaughn: Yeah. Just split the split the work into chunks so that you can keep that feeling fast. Yep.

[00:43:36] Michael Chan: Cool, cool. Um, now I know one big thing that's gonna be super important as we experiment more with Suspense and error boundaries is um being able to see those um states kind of in time. What is the dev- what are the React DevTools doing to help us kind of see those states?

[00:43:57] Brian Vaughn: Uh, yeah, so there's two aspects of this, I guess. One is testing the states. Um, uh, so with with Suspense and/or with state state, DevTools lets you toggle those things. So if I'm um a UI engineer building an app and I've got these loading states that I'm working on and Maybe I am on a really fast intranet or something, and so the app loads up really quick for me and I can't really tell what this load experience is. There's a few tools for this, like the browsers give you like throttling of network and CPU and stuff, but also sometimes that's not enough. I wanna like tweak this loading state. So DevTools lets you just pick an arbitrary component in your DevTools wherever it is and just pretend like it's suspended. And that'll walk up the tree and find the nearest boundary and show its fallback just like it would if React had done this during a normal render. So this lets you quickly like spot check around what happens if this suspends, what happens if this- and then you can tweak your loading states. The other one is, um, some of these states are actually stored in state. So like maybe you have a isLoading thing or a selectedId or whatever that's that's driving your suspense. You can just edit those directly in DevTools. The other angle though is that, um, if you're looking back at what happened, then this is where something like the profiler or this new uh root event timeline view that we haven't built yet would come in handy. And there you would see, um, probably more, but at least 2 commits. And you can look at each commit and DevTools would tell you this was a high priority commit, this was a low priority commit. Mm-hmm. These state things changed during these commits and like how long it took and stuff. And that's sort of the analytics side where if you're drilling down through what happened, then the the profiler would help you.

[00:45:36] Michael Chan: Yeah, well, I know like for me as someone who does a lot of like styling and layout, um kind of seeing that demo today that you could uh kind of freeze it in like a certain uh suspended like spot in time uh was really interesting. And then also, as you mentioned now, like that idea of kind of clarifying what those suspended like uh states look like. So, you know, if this piece suspends or this piece suspends, you know, if the you know, what engages which types of responses from my from my layout. That seems super interesting.

[00:46:09] Brian Vaughn: We had a prototype built at one point that we didn't ship, but uh that was like a draggable, like a slider, and it just started and it suspended everything from the top down one at a time so you could just see every possible loading state of your app.

[00:46:22] Michael Chan: That's wild.

[00:46:23] Brian Vaughn: Um, that was like cool to see, but like a little hard to use directly maybe. And so that's why we're using the, the toggle that we've got now. Um, yeah, that was fun. There's a, there's a thing that I meant to mention earlier that I didn't think to mention. So this is totally out of sequence, but another tool that we are gonna add to DevTools at some point that we have inside of Facebook already in an internal extension that's proven to be pretty useful, um, to like diagnose Suspense and server-side rendering and concurrency and everything is this, uh- This concept of selective hydration or progressive hydration, there's a couple terms for it, but basically this thing that was talked about, uh, yesterday by Tom and Yuzi, I think. Um, but the idea is that it's good to speed up how quickly we can show an initial screen full of stuff to a, to a, a person. Um, especially on lower-end devices, if there's a lot of CPU work that has to be done, then doing all the rendering on the client might take a long time. You could do the rendering on the server and send it down as like already rendered HTML, that could be faster. But now you have this gap of time between when stuff showed and when someone can actually interact with it, because when it first shows, it's just a bunch of static HTML.

[00:47:35] Michael Chan: Yeah.

[00:47:35] Brian Vaughn: Just like it was rendered by PHP. So what happens uh after that is React has to do what we call hydrate, which is to um render the React app just like it would in the sort of regular client-side rendering, and then everything that's rendered, it matches it up with the DOM that's already in place. And this is what is hydrating the DOM. When rendering is done, now the app is interactive just like it would be if you'd rendered it on the client, but there's this gap of time where you can click something and nothing happens, maybe.

[00:48:05] Michael Chan: Sure.

[00:48:05] Brian Vaughn: So, um, there's a couple of things that, uh, I think mostly Sebastian's been working on to help make this faster. One of them is a streaming server render. And another one is this uh concept of um selectively hydrating parts of the tree. So by by default, we'll start on the topmost thing and render our way down. Mm-hmm. Um, but there's some heuristics that might indicate that we should focus our attention uh instead of just going like depth-first, uh you know, top-down, left-right, or whatever. Um, we could focus our attention elsewhere. So like maybe normally we would render uh I don't know if you think of like Facebook, we'd render like the, the top bar, the left nav, the feed, the right panel. But if a user mouses over something in their right column, that tells us like that's probably gonna be interacted with before something their mouse isn't even near. And so we can reprioritize our work to get that interactive faster. We still have to render things above it, but when you get down to the point of, okay, and now I've rendered to this level, which sibling do I go down? You go down whichever one has the thing that was interacted with in that initial state. Uh, so this is cool, but it's also like really hard to observe. It's another like bit of this behavior that you can't directly track with like the existing tools. So we have this, um, extension that currently draws these red, uh, slightly opaque overlays on top of things that are static. These, the using, I think like the Suspense boundaries. Oh. And then, uh, the more levels of work that needs to be done before they're fully interactive, the more of these overlays that get stacked. So you see this page initially with a bunch of like reddish things, and they gradually become clearer. And you can see if you move your mouse over one of them, that becomes clearer faster. So I think something like this could be useful in the generic open source dev tools, where maybe we gray things out or we do something. I don't know the right accessibility approach. Sure. But we sort of indicate that parts of your page are not interactive, and then show you as they become interactive so that you can sort of see in real time um how quickly is my page becoming interactive and in what order. And you can maybe optimize that. Once you can see it, then maybe you can optimize it if if it's not the way you want it to be.

[00:50:11] Michael Chan: That's fascinating. Now, this seems like a perfect example of what's possible in concurrent mode that wasn't possible before. Because you couldn't just step in and reprioritize that part once you had

[00:50:24] Brian Vaughn: For sure.

[00:50:24] Michael Chan: Once you knew where the user was headed.

[00:50:26] Brian Vaughn: For sure. Yeah, this, this has- yeah, concurrent mode and Suspense are both big drivers of this that wouldn't have been before.

[00:50:32] Michael Chan: Interesting. Well, I, I know we both have conference time to get back to. We're like closing in on like 50 minutes, but, um, I wanted to ask you- I know one thing that's really hard about getting into a React codebase now that, you know, a lot of these things are abstracted through build build tools and whatnot, and it's hard to really like see what's happening in your app through the elements panel. You've created a lot of nice um tools for navigating an application. Can you just give us like a high level on those and like how you would hope that these could help um developers dive into a React app?

[00:51:09] Brian Vaughn: Okay, uh sure, sure, sure. So, um, I think the, the biggest 3 maybe are One is the component filters feature, we call it. So this is a new section of the preferences where you can say, um, well, the idea here is that there's like big apps have tons of components, and probably a lot of these components are maybe things that they're important, but they, you don't wanna see 'em all the time. Um, so I could mean like context providers. Like, I don't wanna pick on Redux or something, but like maybe Redux connected components. Like maybe you always have have this one-to-one mapping of this thing to something else and you only wanna see one of them or, uh, pick something, a host component. So like native elements, like divs and spans, for example, like they're important, but like, uh, DevTools, if you click or highlight over an element, it'll highlight it in the DOM and it'll also, you can click it to go to the elements panel. So like, you know where it is in the DOM. So you maybe don't need to see like the 10 DOM elements that it renders. Sure. So component filters lets you just say, okay, uh for now just hide these. And this, uh this flattens them in the tree. So, uh this was actually an interesting— uh I didn't know that this would actually work out cuz it was sort of something that I thought this could be really confusing or it could work out and it worked out. But the idea is that like, let's say you have a parent and uh a div and a component and another component and you filter out the div. What do you show? DevTools actually just moves that grandchild component up as a sibling. Um, I'm using hand gestures. No one can see this, but basically it, it, it flattens or shortens the tree. So you see things represented as siblings that might not be siblings. Absolutely. And I thought like this could just work or it could be really confusing, but in practice it seems to like be a pretty intuitive mental like model for people to use. So filters are a great way to sort of say, um, hide these things and you can leave them defined, but turn them on and off quickly. If you have like things you sometimes wanna see, sometimes don't. That's one thing. Um, another thing, well, there's the last two features are very closely intertwined, but they're the concept of seeing like what components render what other components. And that's useful for a couple of ways. It's useful if you're just trying to get a sense of the code base, then I wanna know like, um, like roughly how many components are there and what's rendering what. There's a, a thing we call the owner's tree, which is basically just a, a zoomed in or like a drilled in view of the components. And you can just, I know double-click is not the most accessible discoverable thing, but currently that's how you do it. You double-click an element and then DevTools will zoom in and it'll show you that element and only the things its render function returns. Huh. So that's kind of like looking at the source code, um, without having to actually look at the source code. So this'll tell you like, oh, this left, uh, left pane renders like these links and these buttons and this profile thing, or it renders just one thing or nothing. Like that's like a nice way to get a sense of the, the source code. And the sort of inverse of that is, well, I know a component, but I wanna know what rendered this component. Mm-hmm. Because, um, a very common thing is that like something's being passed in unexpected, like a prop that doesn't look right. Um, and so I could spend 10 minutes. Well, first I look up the source of this, then I search my code base to see what references this. And now I know the thing that rendered that, but it got a prop from higher up and I need to do this like 10 steps. Um, and even at Facebook with all of our like source searching tools, this is annoying.

[00:54:39] Michael Chan: Yeah.

[00:54:40] Brian Vaughn: So like the, this other feature is a, is like a, um, the, it's like a stack of things that rendered me. And my parent and so forth to the root. And it's usually like, like the log of the depth of your tree. It's pretty short. Um, and it lets you say, okay, I have a bad prop, I don't know why, to jump right to the thing that rendered me and I can look at its render definition. Huh. Um, and this will skip over, you know, 10, so lots of, lots of depth sometimes with these wrapper components. And it just makes like debugging a lot faster, I think. So these 3, these 3 tools, I think together The components filter's probably the most intuitive one, but the other two I think are also really powerful for like moving around an unfamiliar codebase quickly.

[00:55:19] Michael Chan: Yeah. And I, I, I know that that is something that we struggle with a lot is, you know, people who are new to a codebase, like don't know exactly how to navigate it because there's so many different tricks and, and things and patterns that people use to compose components that like every codebase kind of feels like figuring that out again, or maybe even in the same codebase managed by like two two parts managed by different people, um, it's hard to know, like, you know, like, yeah, I see there's a bunch of components between here and there, but like, who owns it? Like, who, who rendered it? And seeing that today was just- it, it felt like that's exactly what a lot of people are looking for when they, they just want to know, like, hey, where, where is this coming from and how can I, like, fix it? Like, it's just a really great debugging tool.

[00:56:04] Brian Vaughn: Yeah, I think so too. I think that was an idea that Sebastian pitched me over coffee one day. Um, some features come up that way. He's like, why don't you build me this thing? And I'm like, ah, screw off, I don't wanna build that thing. And then it'll get stuck in my head and then I'm like, damn it, I gotta build that thing. Um, but a lot of the new DevTools features came up from like side discussions with teammates and stuff like that. Nice. But yeah, yeah, I think it's, uh, hopefully it's a matter of once people know about them, I think it's really, uh, they're really powerful. So I think my job is to figure out the best ways to inform people.

[00:56:35] Michael Chan: Yeah.

[00:56:35] Brian Vaughn: And I know I need to make some of them more discoverable in the UI. I've got the tutorial site, which helps a little bit if people know to go there. But, um, yeah, tips and suggestions on how to make them more discoverable is great too if people have it. So all of this is in the React repo, all the dev tools, and I've made READMEs for how to run them and test harnesses to run them. So like you can get set up and running in a hot reloady style, fast. Passion really quickly and easily.

[00:56:58] Michael Chan: Awesome.

[00:56:58] Brian Vaughn: Um, if folks are interested in contributing on DevTools, the bar is a lot, uh, lower than it used to be, I think.

[00:57:03] Michael Chan: Cool. Cool. Awesome. Well, I am, I hope that this episode can help at least a few people realize like how many new things are in the DevTools and kind of get more people involved. Um, I thank you so much for, for doing all that work, taking it on, and, uh, thanks for chatting with us today.

[00:57:21] Brian Vaughn: Yeah. No problem.

[00:57:22] Michael Chan: Thanks, Brian, for all your hard work on React DevTools and for building tooling that will help us navigate concurrent React apps. For all you React developers out there that haven't installed the React DevTools, do it right now. They're available in Chrome and Firefox. Sorry, Safari developers. And you'll be asking yourself how you ever got anything done before you had these things installed. Amazing work. Before you go, I want to give you 15% off React Day Berlin. This conference is always a hit and they have a terrific speaker roster this year. Go to reactday.berlin to see the lineup. And uh when you buy a ticket, if you use the code SPECFM, you'll get 15% off. Or just find this episode's show notes at reagpodcast.com/73 and click our link. It'll apply the code automatically. Dear contractors, don't go it alone. Partner with the amazing people at G2i. Visit g2i.co today. Apply and find opportunities that you'll love. Tailor-made just for you. G2i— we vet, you get hired. It's that simple. Bring your ideas to life with React Native, hire the industry experts at Infinite Red. Visit reactpodcast.infinite.red and get 2 tickets to next year's Chain React Conf. Meet the team and see why they're the ones to take your React Native app the distance. Build a beautiful, functional React Native app with Infinite Red. This episode of React Podcast was edited by Mikael Delport. It was produced by Mikael Delport and Sarah Jackson. You can find React Podcast on Speck, a network to help designers and developers level up. Visit spec.fm to find other shows that will take you further in your career. Help us out by reviewing this show on iTunes. Your reviews help the show grow and help us ensure great guests and awesome content week to week. To join the discussion. Visit reactpodcast.com/chat or follow us on Twitter @reactpodcast. I'm @chantastic. To stay out of the discussion but get updates, visit reactpodcast.com/news and sign up for emails. Thanks so much for giving us your attention. We'll be in your ears again next week.