chantastic.fm

14: VX and D3 Charting with Harrison Shoff

Episode 14 · July 31, 2018 · 00:33:29

Hosted by Michael Jackson and chantastic · With Harrison Shoff

Download MP3 · Jump to transcript

Michael, Michael, and Harrison talk VX, Charting with D3, Airbnb engineering, and designing unopinionated component in React.

Featuring

Links

Transcript

[00:00:06] Michael Jackson: This episode of the React Podcast is brought to you by reacttraining.com. In-person, hands-on training for development teams from React community leaders and experts. Visit reacttraining.com to learn more. Hello, everybody, and welcome back to the React Podcast. I'm your host, Michael Jackson. My co-host here, Michael Chan.

[00:00:31] Harrison Shoff: How's it going?

[00:00:32] Michael Jackson: And today we have a very special guest for y'all, Mr. Harrison Shoff.

[00:00:38] Harrison Shoff: Hey everybody, it's a pleasure to be here, thanks for having me.

[00:00:42] Michael Jackson: Sorry, I should have made it more clear that you were supposed to say something at that point, but you did marvelously. Harrison is joining us from uh the Airbnb offices in San Francisco. He's normally hanging out in New York City though, he's just out uh visiting us out here in California for a little bit. And uh he has been at Airbnb for the last 8 years doing front-end development. Uh the reason we have Harrison on- well, obviously, ton of React going on at Airbnb. Uh the reason we invited Harrison onto the show today is because he is working and has been working for the last couple of years on a library called Vx. V as in Victor, X. Uh, which is a set of D3 bindings essentially for React, but uh it gives you kind of a React-y, you know, component-based interface uh for building things uh for building things on top of D3. So uh so we're very pleased that you could uh be with us on the show today, Harrison. Harrison, by the way, has uh kind of an interesting background. Before we get into VX too much, I kind of wanted to uh talk a little bit about his background. Went to the University of Washington and studied electrical engineering.

[00:02:00] Harrison Shoff: Yeah.

[00:02:01] Michael Jackson: Now, in in my experience, all of the guys who studied EE were like, they were super smart, you know, they had like bright futures ahead of them. How in the world did you get sucked into front-end programming on the web?

[00:02:15] Harrison Shoff: Yeah, I know. My my parents ask the same question all the time.

[00:02:19] Michael Jackson: We paid all that money for you to make websites? What in the, what's wrong with you?

[00:02:26] Harrison Shoff: Yeah, I mean, it's, it's, uh, I got into EE uh because I just really enjoyed being in the lab, you know, playing with the wires, writing some C, low-level code kind of stuff. And uh, I never actually looked into what do you do after you graduate, like what kind of jobs it would be like. And uh, you know, once I graduated, I kind of realized what it was like, and you'd end up doing, you know, 2 years of tests before you start actually building and designing your own stuff. Um, and I kind of realized I wasn't that interested in doing something like that, and I had been doing I I always thought I was gonna be a designer, you know, like a web designer, do posters, t-shirts, that kind of stuff. And uh uh through that, I picked up JavaScript and jQuery and uh doing little websites for friends, that kind of thing. And you know, after after I graduated, it was 2010. I was supposed to graduate 2009, but the economy was really bad, so I just stuck it out for another year. And then uh

[00:03:15] Michael Jackson: Yeah, I'm just gonna hang out here for a little while longer.

[00:03:17] Harrison Shoff: Yeah, this is it's not bad. You know, keep doing this for a bit. Until I have to figure something out and make some hard decisions. Yeah, exactly. And then I realized, you know, the web was kind of going through the 2.0 phase at that that kind of point, so people were doing a lot of exciting stuff, making some really cool applications on the web. And started looking into it more and learning and just trying to recreate the stuff I saw, you know, on the internet, what people were doing, you know, tabs and photo carousels and all that, and that's how I kind of got into it.

[00:03:44] Michael Jackson: Awesome. What what uh kind of— was it mostly jQuery that you were doing back then?

[00:03:50] Harrison Shoff: I would say only jQuery, to be honest with you. Okay. Uh, I, I, I, at the time, I didn't really have a handle on just JavaScript and all of, all of the things it has to offer and all of its lovely bits.

[00:03:59] Michael Jackson: Yeah, no, it's- that's, uh, totally fair. I, I, I, uh, you know, I used a couple of different ones, but yeah, jQuery was the big kind of granddaddy champion of them all. Um, I always, I always did feel a little bit funny though with the, the jQuery API though. I felt like I mean, it was a beautiful API, but but there was some times when I would, you know, I would say like, dollar sign, wrap a DOM node, dot, photo booth or something like that. Yeah. You know, it's like, it's like, that feels a little weird, but I guess, sure. Yeah, sure. That node is now a photo booth. Um, so so how did you, uh, what what was your first real like front-end gig then? How did you, how did you? Uh, was it was it at Airbnb or did you imagine you kind of-

[00:04:48] Harrison Shoff: It was, yeah, so it was at Airbnb. Yeah, so uh after I graduated, I picked up a magazine. It was Forbes, or not Forbes, Inc. Magazine, like top 30 under 30. And I was like, what are these people doing that I'm not? And I was just kind of flipping through and Airbnb was in there, you know, 3 founders, 2 of them being designers. I thought that was really cool and unique. And so it kind of stuck out to me. I didn't really get the idea, like I hadn't used the product. I'd, you know, browsed around and thought it was kind of cool. But uh I was really just thought it was really cool that you know two designers were part of the founders. That was kind of unheard of at the time. And so uh you looking at my resume, you wouldn't think I was a web front-end guy. So I recreated the the homepage for Airbnb, just kind of my own design, uh kind of made it interactive using jQuery and all of that fun stuff, and sent it in, you know, just kind of saying, just give me a shot. I'm happy to do anything. And you know. I think it was a couple hours later they called me up for an interview and went through an interview on the phone, which I was not prepared for. And then they they called me back 30 minutes later and asked me to fly down to do a real interview. And then the rest is history. Damn. Yeah.

[00:05:49] Michael Jackson: Way to way to get out go out and get 'em, man. You just just rewrote the homepage. That's awesome.

[00:05:55] Harrison Shoff: Yeah, yeah.

[00:05:57] Michael Chan: That's amazing. Now you wrote an article on Medium about your experience, right?

[00:06:03] Harrison Shoff: Yeah.

[00:06:04] Michael Chan: Yeah, and it's called uh My Airbnb Story?

[00:06:07] Harrison Shoff: That's right, that's the one.

[00:06:08] Michael Chan: Nice. You know, it's so funny, um, I didn't put that together until like just now, but um, that's an amazing read, first of all, so uh we'll we'll link that in the notes. But um, it was right about that same exact time that I was kind of like doing a a similar thing and had a similar experience as you with like some kind of, you know, just doing some like jQuery and like, you know, normal sites. And uh that That article really inspired me to kind of get out of my comfort zone and take risks that I kind of had previously thought maybe were outside of my limits. So, uh thank you for writing that. It's a really, really good read and I definitely recommend it to um anyone who might feel a little bit stuck in their their career. Um, so how has that how has that been for you since? Did you feel, like I know a lot of people suffer with um from this kind of idea of imposter syndrome, kind of not being fit to do the job that they have. And you kind of found yourself at a company that was about to take off and you kind of didn't have that experience, or or that's what you kind of allude to. How did that feel in those first couple of years for you?

[00:07:20] Harrison Shoff: Well, it was really exciting. I think just given the opportunity, you know, you gotta run with it. So, I had never worked with like a local DB before. I hadn't worked in Rails, and that's what, you know, they were doing. So that was a big learning curve, and it was a lot of late nights just kind of figuring it out on my own and talking to, you know, I think we were 6 engineers at the time, just talking to those folks and learning from them as much as I could, and just trying to have impact from day one. You know, maybe I'm not good at everything or uh not very uh experienced in a lot of things, but uh you know, if you give me a task to go make something, I'll go figure out how to do it and try to make it happen as best I can.

[00:07:56] Michael Jackson: You said, you said Rails.

[00:07:58] Harrison Shoff: Yeah.

[00:07:59] Michael Jackson: Um, like, what an amazing piece of software. Like, how many people built businesses that changed the world on top of Rails, and then 10 years later hired a bunch of other people who were like, oh, this crap sucks, I hate Rails. But like, it allowed people to get started and like build something and launch something. Anyway, this isn't the Rails podcast, but I never realized that Airbnb uh started on Rails. I was at Twitter for years and and Twitter started on Rails as well.

[00:08:31] Harrison Shoff: It's it's a great way to start, you know, when in the early days you just gotta get up and going and see if you can find people that love your product.

[00:08:38] Michael Chan: Are there still some remnants of Rails or how much of it is-

[00:08:42] Harrison Shoff: Absolutely. So we're we're in the process of migrating our monolith Rails app, um you know, out into a service-oriented architecture. At this moment. And most of the services are written in Java these days, but we do have some other Rails services and, you know, Node as well out there. But uh we still have a lot of Rails, but it's shifting, it's shifting. I think that's what I'm supposed to- yeah, it's shifting.

[00:09:04] Michael Jackson: Okay, so let's talk a little bit about uh this Vx library. Now, I have to tell you, Vx is a library that uh I I actually first heard about it from Guillermo. Guillermo Rauch. I was um I was just you know hanging out on the Twitters one day and Guillermo uh posted, he's like, check this thing out, VX is awesome. And uh and I went in there and and uh you know it's not the first um sort of bindings library for D3 that I had ever seen, uh but I really liked a couple of things about it. Um I really, really liked the just kind of the approach that that you were taking. Um, one of the things that you say on the, uh, on the VX homepage, which is actually hosted on, on Now, so maybe that's why Guillermo was tweeting about it. In fact, that's probably why he was. That guy is just a self-promoter.

[00:10:00] Harrison Shoff: Yeah.

[00:10:01] Michael Jackson: Just so, just always like, okay, anyway, I love that guy. Uh, anyway, you said, um, you said, uh, the goal of VX is to create a library of components you can use to make both your own reusable chart library or your slick custom one-off chart. VX is largely unopinionated and is meant to be built on top of. Keep your bundle sizes down, only use the packages you need, or use only the packages you need. I think that's uh a really uh that's a really cool premise to start with. So it's it's not a charting library. It's rather it's a a library of components that if you wanted to make a charting library, sure, you could do that. Or, you know what, forget making a charting library. You could just make your own custom one-off chart.

[00:10:56] Harrison Shoff: That's right.

[00:10:58] Michael Jackson: Could you tell us a little bit about kind of that decision? Had you- and and why you made that decision? Had you tried, you know, other libraries that didn't work for you, or, um, and and you wanted something that was a little more kind of custom and stripped down?

[00:11:12] Harrison Shoff: Yeah, so about a year ago, I joined uh the observability team at Airbnb. So we're building monitoring tools for Airbnb engineers, and a big part of that is visualization work. And I knew kind of going into it that's what I was gonna be focused on largely, building UIs around that. And uh the first thing I did, you know, now that I'm kind of an older engineer— is or more experienced, I should say— is that uh I went and studied the landscape. You know, what were we already using? How was it being used? Um what was the plan going forward? And I kind of discovered uh kind of surprising results. We had- you know, 3 or 4 different charting libraries in different places, internal and on on airbnb.com, and as well as just using plain D3 in some places. And I thought that was really interesting, so I went and sought out, you know, the folks working on this stuff, and I wanted to ask them, you know, why, what was the reason? And it kind of came down to a design decision, right? So, they had committed to a charting library, and then eventually they ran into, uh, you know, a guardrail where they couldn't go any further with it to build what they were trying to make, you know, the The designer had come up with something really amazing and impressive, and they kind of hit a wall with the charting library. And that's why charting libraries are always great until they're not. And at that moment, you you you really do want to step back and or step down and go more low level and like something with D3 that D3 provides. But you know, we have very few expert pro D3 folks within the company. And you know, folks can go off and learn it, and that's great. But Uh, you know, largely, that's just gonna take up more time, it's gonna slow things down, and slowing things down just kills productivity and creativity. So, um, we we really just wanted to make something that was like D3, low level and reusable, and just make it feel at home in any React codebase. And make it so that maybe if you're intimidated by D3 or you've never used it before, you're unfamiliar with how it handles the DOM and uh updates the DOM, maybe But you you know React already, and you're used to that. Maybe there's something there that you could just make it work and pull it all together with what you already know. And that that was what the goal was, and that's how it started. And uh you know since day one, just kind of been working on it in open source, because I knew it was gonna be used in open source. So it's kind of a forcing function on myself to make sure I wasn't doing anything uh internal out there. And uh actually, you know, when I first open sourced it, I I was really just kind of hoping someone would tell me come come into the issues and say like, don't do this, this is a bad idea, like I've tried this, don't do it. Uh and that never happened, so I've just kind of kept going ever since.

[00:13:41] Michael Chan: For for anyone who's unfamiliar with um D3, obviously it has its own ideas about how to manage um the DOM and state. Um what are the hardest parts of trying to merge those two, um or merge D3 and React?

[00:13:59] Harrison Shoff: Yeah, I think, so for folks coming from a D3 background, uh you know, and you're not familiar with React, I think that the bigger curve there is learning React. Um if you're coming from a React background, um D3 and the DOM is probably the biggest hurdle for you in terms of its general update pattern. So it has this idea of you bind data to your DOM element, and then you can say like as data enters, you know, render this, or basically map over the data. Or uh when it updates, you know, then do this to that node or update its color, that kind of thing, or when it exits, give it a transition where it fades away, that kind of thing. And so it's it's you know really beautiful and it's fun to use. Like I've had a blast using D3 just itself um for a long time, but um you know it's a bigger hurdle for a lot of React-focused front-end engineers, and Airbnb's big on React, so it never really kind of made sense to just put D3 code in componentDidMount, that kind of thing, where you just- Right. you know, hand off the lifecycle to D3 instead. You know, React's really great at it, we know it and love it, and we're aware of where it's good and where, you know, you can get into some problems. So why not just try to bring those two things together? And so, you know, the really the big part with D3 is when it came out with v4, so it moved into a modular kind of structure, right? So it's broken out into different packages, and that was a huge thing because they actually made something like VX possible, where you didn't have to include all of D3 in your bundle. You can just use the parts that you needed. And that was a big thing for me to to kind of work on top of that. And then it's just focusing on— uh once it was modular, it was just focusing on the bits that weren't DOM-related and pulling that in and and making it more familiar to to React APIs, which I've gotten used to as as I've been building React stuff here at Airbnb.

[00:15:37] Michael Jackson: I noticed that uh a lot of the examples on the D3 site, you'll just— um instead of, for example, just rendering one sort of giant component at the top, Um, you'll render, you know, an inside your component, you'll return an SVG element, lowercase SVG. It's not some sort of custom uh VX SVG. Um, and then you'll just drop your own components in there. So I'm looking at an example right now where you've got like a gradient teal blue component, which is something that VX provides, which is cool. And then you've got a lowercase rect, right? So you can still, you know, drop in your sort of built-in SVG elements. Then you've got one of your own components, a group component.

[00:16:29] Harrison Shoff: Yep.

[00:16:29] Michael Jackson: And then a nested group component and a bunch of nested bar components inside the group component. So you're kind of- you're basically, when you're using VX, you're weaving in and out of the built-in SVG components and elements that the DOM provides and that React provides and, you know, VX's components, which I think is a really, really cool way to do it. Um, it's it's, you know, it it it really, uh, I think, showcases this whole idea of, you know, being modular and and and building out the right primitives.

[00:17:11] Harrison Shoff: Yeah, so as you're reading through that, did anything kind of surprise you while you're reading through the code, or, you know, look unfamiliar?

[00:17:18] Michael Jackson: I mean, not really. I mean, it's- it's- which is, I think, a great- this is one of the things that I've already always liked about, you know, the approach that you're taking with VX is because I- I kind of- kind of look through the code and I'm like, yeah, this- I mean, this looks like SVG code with a few pieces sort of wrapped up in, um, you know, a few of these kind of low-level pieces like a bar, for example. Yeah. Right? So like a bar, uh, you know, I might have to draw my own rect and, and everything, but, but it's interesting because even these VX components take a lot of the props that the built-in SVG components will take. So like a bar component takes a fill prop. Which is a, you know, it's a prop that anybody who's ever worked with SVG will be totally familiar with.

[00:18:08] Michael Chan: I really like the boundaries of VX, and it sounds like uh Michael does too. Uh I wonder, have you had a lot of pushback on that idea of not making a charting library but making these kind of low-level components that allow you to compose your own charting library? Like, does that philosophically rub people the wrong way sometimes?

[00:18:29] Harrison Shoff: I think it's all about expectations. I think when folks come to VX, you know, they're expecting it to be a charting library and they can feel like, wait a second, maybe I'm doing more work. You know, I'm not just dropping in data and getting a chart with tooltips and stuff. You know, now I'm kind of wiring things up and I'm making sure I'm mapping over my data and, you know, returning these bars or rects. And, uh, you know, I think that's kind of where the the gap is. Once you, you know, not everyone's gonna have the the problem where they need to build something that's never been built before. You know, charting libraries, the best charting library in the world is gonna be the one that anticipates every need for every chart that ever existed or could exist, right? And that's that's an impossible task. I'm not sure if anyone's gonna be able to do it. I think there are some really notable attempts out there that are great and really useful and, you know, make everyone more productive and efficient. But sometimes you're gonna be running into something that, you know, you you didn't know you were gonna end up needing to make. And how do you answer that question? And that's kind of like what this approach is, is that, you know, uh you tell VX what you want to make and off you go.

[00:19:29] Michael Chan: Yeah, yeah, I like that approach. I've noticed this a lot in uh in my work too, in working with teams, um just realizing that like everyone has this kind of like internal sense of rebellion. And like once something becomes too easy, like we we just want to like shake it up, even, you know, for better or for worse. And um I've loved I've loved this pattern of kind of releasing just the the lower level, like the building blocks, and letting people kind of decide because it It really does allow people to kind of succumb to their own sense of rebellion when when it comes knocking.

[00:20:03] Harrison Shoff: Oh, absolutely. Absolutely. And you know, a large part about VX too is not being or being unopinionated about how you do state management, uh styling. So you know, any flavor of CSS and JavaScript, or just regular style sheets and class names, or even uh animations. So VX is unopinionated about all of that. And that's that was an actual design choice there. But um. And that's because why why should a library be deciding you know how your app functions and what it does? Um you know what your conventions are for animations and that kind of thing. There's no reason for me, who's not an animation pro, to be writing my own animation library for VX specifically. I think there are much better people out there doing great work around that stuff. And uh you know since it's just React components, uh anything that works for a React component is gonna work with VX.

[00:20:51] Michael Chan: So Have you been surprised by any of the uh things that people have built with VX?

[00:20:57] Harrison Shoff: Yeah, I mean, I I wish I had more feedback around what people were building and and knowing what it was. Um, there's been some cool stuff with uh Jason Jason Brown. He's been experimenting using VX and React Native and making it work there. I was surprised by that. Like that was really cool to see that go off and happen. I knew it was possible. I'm just not a a pro at that kind of stuff, so I'm not gonna be able to figure it out. Sure. Um, let's see. I think when I search GitHub, you know, look for @vx/shape, let's say, just the string, and try to see where people are importing it and what they're doing. I see a lot of Bitcoin charts. Um, yeah, I I would love to know how people are using it more. I know, you know, internally for us it's been valuable because we built on top of it our own internal um charting library. It's called Data UI. It's actually open source as well by Chris Williams. Uh, you know, he's a big D3 guy and he figured out how to make, you know, our charts at Airbnb be themeable and consistent across everywhere. And, you know, did a great job of making these beautiful charts with that. And that's open source. And then what we do is we pull in those open source charting library components, and then we theme them within our own internal, you know, kind of bootstrap-y bootstrap thing where it applies the theme. And then that's how we kind of get our own internal custom charts, but also have uh reusable charting library components that we can use in our open source projects like Superset, which is a big one, uh by Airbnb.

[00:22:20] Michael Jackson: So could you tell us a little bit about kind of the future of the project? It sounds like sounds like you've hit on a good level of sort of primitives for VX. Um people are building, you know, people like Chris Williams are able to build data UI, things like that on top of it. Um is there anything that you kind of uh, you know, looking back, you're like, oh, you know, maybe I made a mistake there, maybe I should have done that differently, um, you know, maybe something that you want to correct, or or even just some, you know, extra sort of major feature that you want to add in the future? Or do you feel like it's kind of it's kind of complete at this point?

[00:23:00] Harrison Shoff: Not not complete yet. So if you if you check out the GitHub README right now, Uh, and I get a lot of questions about this. It says it's still in beta, and uh, I'll explain that a bit, but you know, the the main thing here is it's not V1 yet. Like we're all, I'm just incrementing, um, uh, what is it, the minor? No, not minor. Minor. The patch, the patch right now.

[00:23:21] Michael Jackson: Oh, there you go. Yeah.

[00:23:22] Harrison Shoff: So I'm only incrementing patches right now, and that was a conscious design choice as well. Uh, I didn't want to hit V1 until I had all of the D3 interactions or data visualization interactions. So, you know, uh imagine like a brush component, so you can select data and zoom in and, you know, move around. Um, as well as zoom, pan-zoom, that's a big one. I do have a drag interaction component out there and it's working well for me. Um, you know, the thing is, even though VX, the library itself, might not have the brush component or these kind of things, you can go and, you know, you're still able to build your own on top of VX and use it within your component. For sure. It shouldn't stop you from investigating into it, and I do have plans on supporting it. Um, you know, the problem is I've I've rewritten it probably 5 or 6 times from scratch, and it's it's it's uh, you know, hats off to Mike Bostock. That that's a that's a hard one to get right, and uh he did a great job with D3 Brush. So uh making, you know, making it work up to there. I think, let's see, going to the other question about design decisions that I made that I might not make right now. So getting to the v1 is gonna be to finish the interactions, but I think the other piece too I'm going back and forth on is I made a design decision to make it feel more like D3 in the sense where you get the data in your- let's say if you're giving an attribute to a bar and you're saying, you know, you're mapping over a series, an array, and you're gonna be returning bar components, but you want to change the fill based on the name of that Uh, you know, item in the array or something like that, or stack bar. Um, I pass in the data back if you if you give it a function on fill. And there's kind of a song and dance around that um to turn them into functions and bind, you know, pass in the extra argument. And I think that was kind of a- didn't know- well, it works and I think it's okay, but I think it confuses a lot of people coming from React that suddenly their functions are getting called if they're just doing event, you know, uh whatever in their function. It's now a function that returns a function. I think people get caught up on that, and that's something where I think I could remove it, because you don't even need it. If you're mapping over data, you already know the data, and you could just do a, you know, ternary kind of thing and just return a different color or something like that. So.

[00:25:38] Michael Jackson: Yeah, just plug in whatever fill you need, right?

[00:25:41] Harrison Shoff: Yeah, yeah. So I think um I'll probably be changing that before v1, or keep it around, I'm not sure yet.

[00:25:48] Michael Jackson: You know, a lot of what you're talking about here, honestly, with the VX library is, is reminding me of, um, conversations that we've had in the React Router repo for a long time now, just about like, just about like hitting on the right primitives and providing people with the tools that they need to build their own things, you know, like, um, like one of my goals for a long time has been to build like a master-detail controller sort of view thing for, you know, mobile device. If you're using React Router on on React Native, for example, um or even just in a web app on a mobile device, it'd be nice if something like that came up sort of out of the box, you know, a a tab controller thing where you could just tap on a a tap on a on an item in the master view and then the detail would sort of slide in, right? And it's that kind of higher level sort of abstraction that you can build on top of, you know, a low-level- like, if you have- as long as you have a system for managing screens and managing routes, um, and, and it's not impossible to animate between them, then you could totally build something like that, like, on top of them, you know. Um, but anyway, it's, it's, it's why the- I think the design of VX has really resonated a lot with, uh, with me, because I think you've hit the right primitives.

[00:27:06] Harrison Shoff: Well, it's a unique challenge. It's a hard one too, getting the right primitives and staying unopinionated. Uh, you know, oftentimes it gets really easy if you get opinionated about things. Like, you can make assumptions that you normally wouldn't make if if you're not making primitives. So that's, that's the hard part there.

[00:27:22] Michael Jackson: Well, and I've thought for a while now that, like, there are- like, if you really boiled it down, there are, like, probably, like, 4 or 5, not maybe not very many more kind of basic kinds of apps, um, that you would build for- for- for- I mean, obviously ignoring like custom apps because you can do anything you want, obviously. Right. But, you know, out-of-the-box kind of controllers that UIKit gives you on iOS or whatever people are using on Android. I've never done a native app on Android, so I don't know, but there- there aren't- there aren't very many of them, right? You've got like a master-detail view, you've got like a modal, you've got like a, you know, pull to refresh that everybody uses. There are like a couple of things that like if you just sort of had kind of out of the box that everybody would be able to use. Anyway, I'm talking about my own thing now. I'm not talking about Vuex anymore. Sorry.

[00:28:16] Harrison Shoff: It's great.

[00:28:18] Michael Jackson: That's just- that's where my brain goes. Um, well, okay, so let's- let me ask you one more, uh, just one more question before, um, before we wrap this up. And by the way, thank you for coming on the podcast. We've had an awesome time talking with you about about VX. Um, I'm really looking forward to using it. I hope that uh people who, you know, haven't heard about it or or whatever before hopefully got some exposure to it and and are able to kind of take a look at it. Um, do do you have a lot of— um, you said you're not getting a lot of feedback now, so if you're out there and people want to give some feedback, I'm sure Harrison would uh really appreciate it. So go ahead and check out the- go ahead and go to the repo. It's all open source. You can check it out, file some issues, get in some discussions.

[00:29:08] Michael Chan: Also, it has just the best uh icon that I've ever- or the best graphic that I've ever seen on an open source project. That tiger is so fire.

[00:29:19] Harrison Shoff: Wow, thank you. Yeah, that was fun to draw. Actually, I I did that before I even started writing the code. I had to know what it was gonna look like in the end.

[00:29:28] Michael Chan: I think you prioritized correctly because it looks so good.

[00:29:33] Michael Jackson: Guys, before I write any code, I need the icon.

[00:29:38] Harrison Shoff: And the name. I needed a name and a logo, and then I can figure it out from there.

[00:29:43] Michael Chan: I got it. You know, honestly, those are the most important parts. Let's let's be real frank here.

[00:29:49] Harrison Shoff: Yeah, for sure.

[00:29:51] Michael Jackson: So, so can you tell us, Harrison, um, what in the React community are you excited about right now? What projects have kind of caught your eye? What people are doing interesting work? Um, you know, maybe what people would you like to see here on the podcast?

[00:30:08] Harrison Shoff: I gotta say, I'm really excited about ReasonML. I know it's really early and, you know, we're not using it anywhere at Airbnb, but, uh, I think it's just really exciting, the things it can do with Reason React. And uh the way it's approaching things, I think it's really cool. Cool. As well as, if you if you haven't seen React Sketch App by John Gold at Airbnb, he um he's doing some cool stuff where you can render uh your components in Sketch, or go from Sketch, yeah, render your React code into Sketch, which is kind of cool for building out style guides within you know your favorite uh Sketch app kind of thing, which is cool. And then the other project I think, you know the hardest component I think that I've had to remake or use someone else's since the beginning of time, it feels like, is a date picker. Well, uh, my favorite React date picker is uh by Maya uh W. here at Airbnb. And uh, it's open sourced at Airbnb React-dates. And it's the one we use, you know, everywhere. And um, it's just, it's so much fun to use. Like, you know, hats off to Maya. She did a great job.

[00:31:08] Michael Chan: I imagine that that's something you would have to get right at Airbnb.

[00:31:13] Harrison Shoff: Yeah. Yeah. That one. It was a big one and it was important to get right, you know, making it internet work everywhere for every country, different time zones, and, you know, supporting all the different kind of date picker UI uh patterns that you find in travel websites. So.

[00:31:28] Michael Chan: For for those for those people who might be thinking right now that they're just gonna roll their own, like, are there specific challenges that you could dissuade them with right now and just be like, for this reason alone, use React Dates?

[00:31:43] Harrison Shoff: You're gonna get some interesting bugs, and I'm pretty sure you're not gonna be testing it everywhere. Uh, I would I would I would recommend against it. You know, either find one that works for your use case, or uh, I would I would take a long pause before you build your own date picker. It's a hard one.

[00:32:01] Michael Chan: How long how long how long did it take uh take take your team to uh to to get that right?

[00:32:08] Harrison Shoff: A couple iterations. We had uh we were using a you know jQuery date picker one in the very early days for a while, and then we ended up realizing it wasn't working for every use case we needed. So then we made a, it was called a faux query uh date picker. And uh that one worked for a while until it didn't, and then uh we realized that we couldn't be just doing you know jQuery date picker within our React components anymore if we're gonna be going all in on React, and then Maya picked it up and just kind of ran with it and made it all happen.

[00:32:36] Michael Jackson: Well, cool. You've given us some great ideas. I definitely want to get Maya on here to talk about that. And uh and we should probably we should probably get somebody on here to talk about Reason too. I know I know I know quite a few people who are working with it. We could get Cheng Lou or Jared Forsyth or somebody on here. That'd be awesome. Well, Harrison Shoff, thank you so much for joining us today here on the React Podcast. And thank you for listening to the podcast. Uh, wherever you are, we will be back with another episode next week. And uh, thanks again for listening.