chantastic.fm

60: James K Nelson on React with the Buzzwords

Episode 60 · August 22, 2019 · 00:40:36

Hosted by chantastic · With James K Nelson

Sponsored by G2i

Download MP3 · Jump to transcript

This week on React Podcast we sit down with James K Nelson. We discuss what makes React hard to learn and how he's addressing that with his teaching platform frontarm.com.

We talk about learning React without the buzzwords, his new router — Navi — and how to make some React bacon.

This is a great episode for those who have had trouble keeping up with React and want to discover and master the things have remained the same

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

Transcript

[00:00:00] Michael Chan: This is React Podcast. I'm Chantastic. This week on React Podcast, we sit down with James K. Nelson. We discuss what makes React hard to learn and how he's addressing that with his teaching platform, frontarm.com. We talk about learning React without the buzzwords, his new router, Navi, and how to make some React bacon. This is a great episode for those who have had trouble keeping up with React in the past and want to discover and master the things that have remained the same. This week is sponsored by G2i, a hiring platform that specializes in proficient and efficient React talent. Hiring is an expensive process. Just finding candidates can slow your team's productivity to a grinding halt. And there's a huge gap between resume and React proficiency. You could roll the dice, test your hiring abilities, and put your goals at risk, or you could hire G2i to find the perfect developer for you right now. G2i finds the best React and React Native talent available and determines in which areas they're the strongest. Engineers have been vetted through React-specific code reviews and technical interviews. And when you work with G2i, those scores and notes are provided to you upfront, saving you time and energy. And keeping your team focused on building the product, not finding a needle in a haystack. Let G2i solve your hiring problem for you. Visit g2i.co today and find a developer handpicked for your team and application stack, ready to go. G2i. We vet. You hire. It's that simple. James, welcome to the show. It's so good to have you.

[00:01:56] James K Nelson: Thanks for having me. This is uh kind of new for me, so it's fun.

[00:01:59] Michael Chan: So this is uh quite a cross-continental call. Uh where are you joining us from today?

[00:02:05] James K Nelson: Right now I'm in Tokyo and at a station called Gotanda. So it's a it's they call it Gotanda Valley in some of the news 'cause there's a lot of tech companies around here.

[00:02:15] Michael Chan: Nice, I was actually just watching a TED Talk with uh David Sivers and uh he was he he was introducing this concept that I've never even heard of before, but that in Japan, they name their blocks, not their streets. Is that correct?

[00:02:30] James K Nelson: Yeah, that's that's true. So it's impossible to find anything. I'm lucky that I first came over here in the age of of Google, 'cause yeah, otherwise I would have been completely lost.

[00:02:41] Michael Chan: That's so that's so wild. It's it's interest it's so fascinating to me that uh that different cultures have such different ways of doing things. Um but I'm I'm sure that our system probably seems insane to someone who's grown up with uh with that.

[00:02:56] James K Nelson: Maybe. I think that most people I've talked to find our system easier to use.

[00:03:00] Michael Chan: Nice. Well, maybe we're getting getting something right. Um, so for those who are unfamiliar with you, uh tell me a little bit about yourself, what you do, where you're doing it, and why.

[00:03:13] James K Nelson: Okay. So, um, I'm trying to teach people front-end development, basically. And Uh, well, I do it by myself, so it's it's mostly just like me. I sometimes work with a few local people and a few not so local people as well. But um, why I'm doing it? Well, partly because I've gotta pay the bills, if I'm gonna be honest. But I mean, I've I've done other things, and I think this is one of the more fulfilling things I've done because it's always fun to be able to see people grow and pick up new skills and then get a job and that kind of thing. So, you know, it's it's not the easiest way to pay the bills, but it is- it does feel nice doing it, I guess.

[00:03:50] Michael Chan: Yeah, yeah. It's a very like kind of virtuous thing to be able to help other people to work. Now, um, are you still working as a, you know, in React or is it all education? Uh, and what were you doing before?

[00:04:05] James K Nelson: So I I do some little jobs, uh, or not so little jobs, but I do build apps and things like that on the side when I need to or when a good project comes up. Uh, but before this, I've done a few things. I was working for like a finance firm for a few years, uh, but before that, I was mostly freelance since I graduated high school, I think. So it's just been little projects here and there most of the time.

[00:04:31] Michael Chan: That's awesome. Um, now you have- I I have to say, you your course material has been like blessed by the grandfather of of all things React, There's a tweet out there by Dan saying that this is, you know, some of the best material, or I think maybe the best material at the time on React. So how does that how does that feel? How does it feel to have someone like Dan endorsing so strongly what you're what you're doing?

[00:04:59] James K Nelson: Uh, it's it's it feels good. I mean, it was a long time ago, I want to say. I mean, that tweet was about something I wrote probably 3 or 4 years ago. So Um, but you know, it's good. I think though, this might sound strange, but I actually find it more enjoyable when people who've gone through it and actually learning new stuff, send me an email and say, hey, I've been using your stuff and it helped me get a job or something like that. Because I mean, that's that's really what I'm aiming for. I want to help people actually learn. And it's great that that Dan likes it. And that it feels really good too. But the best part about that is it helps other people find it and then get more stuff out of it. So that's I really appreciate it for that.

[00:05:40] Michael Chan: Yeah, what are some of the your favorite success stories in uh in educating people in React?

[00:05:46] James K Nelson: So I don't have any stories in particular. It's just like when people say that they've— like some people have said to me, oh, I've gone through your course and it's helped me like take what I know and actually get a better job. When when people give specifics like it's helped me get this job or it's helped me make this project or that kind of thing, then I really like

[00:06:09] Michael Chan: Now, I, I feel like one of the reasons that I really want to get you on is because I feel like we share this, um, I, I guess, value for fundamentals. And I think your, your course, I, I can't remember the title of it, but it, it basically like without JSX, without Webpack, without like any of the, any of this stuff. I think it's now called like React Without Buzzwords. Is that right?

[00:06:30] James K Nelson: Yeah. Yeah.

[00:06:31] Michael Chan: Yeah. Um, and I just, I, I. deeply identify with that approach. And when I try to teach newcomers into React, you know, I usually start at that same point. Like, we got to get like start from like the basics. Don't like pile on all of this this stuff. So, um, I know that that kind of desire for fundamentals kind of for me started in music. Uh, where would you say that came from for you? I know that everyone has a unique place where those values start to like take form. And uh is this something consistent for you, or is it like just in React?

[00:07:07] James K Nelson: Um, I think there's probably two places. One is that I studied math, so the only way you're ever gonna get anywhere in math is if you learn how it works as opposed to just how to get the right answer. I mean, getting the right answers works for a while, but at some point you have to start learning the fundamentals or you're just gonna get lost. So that's part of it. Um, another part I think is is just, I think that's the best way to teach effectively. And my the reason I think that is because one of my first jobs was working at a call center for an ISP. So I was one of the support guys and we were all guys. I think maybe 99% would be an understatement. But um, yeah, and so we'd get calls from mostly from older people who would be like, oh, my internet's not working. And it would be very stressful for them and you could tell and you just have to I mean, it was easy enough to fix, but the big problem was actually getting- just comforting them through walking through the steps to like plug their modem back in, or saying, "Yeah, it's okay to pull the cable out and plug it back in. You're not gonna break anything." And just actually getting people to take those steps and and try things out, I think, is is really important. And I I learned that from that. So I think if you want to make people take small steps, then you have to start with the fundamentals. And so that's part of it as well.

[00:08:24] Michael Chan: I like this idea of of guiding people through the process. And uh and I I think that you've done that well. I think that being able to break down or like kind of pull away some of the things that that are hard and and and get back to those basic concepts has um has been really a uh a very strong quality of the things that you write and the way that you you teach. What are some of the things that you think make learning React hard?

[00:08:52] James K Nelson: So there's a few things. I think one of them is the fact that it's- as much as I might try and tell people it's just JavaScript, that's kind of like a little white lie to make them feel more comfortable. It's JavaScript. There's a whole bunch of stuff involved. So you're not gonna actually write a real app without JSX. But it used to be that you could throw in a script tag in the HTML and JSX would work, but I don't think that's really supported anymore. So you have to get npm installed and install a build system. And I remember when I was first starting out with with JavaScript, well, not with JavaScript, but with uh Node.js, that was really confusing.

[00:09:26] Michael Chan: Mm-hmm.

[00:09:27] James K Nelson: Like, what's this require thing? I don't remember ever learning about require. And I think it's a little bit easier now, but so the build the build side of it is is one thing, and that's Create React App has made that a lot easier, but it's still a big obstacle, I think. to starting off. And another one is that there's a lot of different ways to do things. So people, I think, like often like to have the one right blessed way to do things, which is not really how we we do it in the React world. So I think I was listening to a podcast with uh Kent C. Dodds, the the second one, and he said something along the lines of um best practices, and then there was a bit of laughing. And I think the same thing. I don't particularly like the idea of best practices either. I've got into arguments with coworkers over them not really existing before. But the fact that there are really no best practices in the React world does, I think, make it a little bit harder for people who are just wanting to start out. And it's not like they have to have it the perfect way. They just want one way to do things and they just wanna learn that, and then they can go on and learn other ways after that.

[00:10:31] Michael Chan: That is interesting. I've always thought best practices were particularly laughable in React because like the whole premise of React, or like the way they pitched it initially is like rethink best practices and practices, practices. And so it's always funny to, uh to, to hear best practices in association with React, which was kind of- the premise of it was to like be disruptive against the existing best practices.

[00:10:59] James K Nelson: Yeah, I mean, I I don't like the idea of best practices, but the the thing is there are kind of best practices, even if we're not allowed to call them that. Like, for example, now I think that the best practice is you put your state in a hook, even though you could put your state in a component state, like a class component.

[00:11:19] Michael Chan: Yeah.

[00:11:19] James K Nelson: Or, um, another one, I was just asking on Twitter, like, the people who put their components in one file or multiple files. And there seems to be a bit of a best practice there, even though we're not allowed to call that a best practice either. And yeah, so there are these best practices and I think- or not best practices, but conventions maybe would be a better word to use. And so I think it might help beginners if some of these could actually be like agreed upon. As like you can do it your own way if you want, but this is what everyone does. And that's one of the comments I hear from people who are starting out. With React, like with web React after they've been using React Native for a while.

[00:11:57] Michael Chan: So

[00:11:57] James K Nelson: you know, in the React Native community, there's a lot more agreement over this is the tool you use for this, this is the tool you use for this. You can do it your own way if you want, but you know, if you're just starting out, then use these, and that's really helpful for a lot of people from what I hear.

[00:12:08] Michael Chan: Do you feel like some of those conventions are driven by native development in general having more of those practices, um or at least those communities having a little bit more structure around their apps? Or is that just the React Native community?

[00:12:24] James K Nelson: I I couldn't say really, because I've really spent most of my time doing web development. Dabble in native where I have to, but I usually try and avoid it.

[00:12:33] Michael Chan: So for someone starting out today, what are some things that you think are good starting practices? Now I know that a lot of times they can degrade as you get into bigger apps. Um and that's kind of a challenge of its own. Like saying what is gonna be good, you know, for the the whole course of the life of an app. Because those things might change and be the inverse, you know, later. Um, but what are some practices that you think are really good as someone who's just starting out? You know, these, you know, 5 or so things are like really good practices for you to start.

[00:13:05] James K Nelson: Wow. That's that's a tough question.

[00:13:07] Michael Chan: So, I guess to to to to further clarify that. So, like in in terms of like foldering, you you just said that there's some like, you know, practices that may be good or bad. Do you have a a something that you recommend to people who are asking themselves that question?

[00:13:23] James K Nelson: Um, so I've I've been thinking about this a bit because I'm actually creating a course at the moment which walks from the start of like just npm init to actually having a full app. And the approach I'm taking is I'm trying to do this course kind of like how I build my own app, say if I was building it for myself. And so that means I just throw everything into a single file at the start because I think-

[00:13:45] Michael Chan: Yeah.

[00:13:46] James K Nelson: You know, you can say, oh, we we want to do it this way and this way and this is clean, but the reality is I think most people just throw everything into a single file at the start. And then, you know, once you start finding things which are reused, no, like even even more than just a single file, I mean, I have an app component that has most of the app in it. And once I think, oh, okay, I'm gonna reuse this piece of code, I'll pull that out into a separate component within the same file. And then You know, once I find that maybe I have a few different routes, I'll pull some stuff out into separate files for routes, and if I have to reuse components, I'll pull that out. But I I think the the main thing is just don't worry too much about the structure at the start, 'cause you're not gonna know the best way to structure an app until you've actually started building it and you start to see the patterns, because the patterns differ in every app, I think.

[00:14:34] Michael Chan: What are some of the the strategies that you've seen with regard to component organization?

[00:14:40] James K Nelson: So, some, I think there's two broad classes. Like some people try and put all of their files for a related concept and together and some try and put all of the files for, say, a specific type of file together. So the type of file, like Rails does it that way. They have views and they have models and controllers. And I come from Rails, so I kind of like that way. But then I think a lot of people also try and have all of their files for a specific concept. I think you can have a mix of two as well. Like you can have, say, if you have an account management screen, you can have all the views for an account management screen in one directory and all of the controllers in another. I think part of the thing that makes that hard with React is that we don't have this clear distinction between controllers, views, and models.

[00:15:31] Michael Chan: Yeah.

[00:15:31] James K Nelson: We just have components. Uh, and I think that's part of the reason that it's hard to structure an app is because it's like, there's all different types of components, but they're all still components. And so there's no easy way to sort of break them into separate types of directories. And so you end up trying to structure by related functionality, but that's, I think, a lot harder to do. And it's a lot harder to, especially at the start, because with a Rails app, the great thing about it is you can generate it. And you have these directories and you know which one you want to put stuff in. Whereas if you're trying to group stuff by related functionality, then you don't know how you're going to group it until you've already got the functionality.

[00:16:08] Michael Chan: That's so true. And especially if you have components that are like very small, those go in this kind of like generally shared bucket, which always kind of ruins any type of structure that you might've thought you even had.

[00:16:21] James K Nelson: Yeah. So I've I've got a way of doing it, but it's I've got I've had like many different ways of of doing this over the years. So my current way of doing it, which I don't know, I think it's stayed stable longer than most of them, is to have a directory for for routes. So uh I think they're a little bit like controllers in the the React and the Rails world, but they're basically just routes. So so they have they're a general purpose component and they just have one component for each screen, and that'll do a lot of the glue code, I guess. Then I'll have another directory for styled-components, which- well, they're just styled-components. They don't have to be styled-components styled-components. They can use CSS props, so just be plain components that have styles or use CSS, but they just add styles. And then just have like a general components directory. So I think that's kind of similar to the Model-View-Controller. Thing, maybe not exactly similar, but it's, it's closer than a components directory and that's it.

[00:17:21] Michael Chan: Yeah. It's funny. I, I also come from a Rails background and I think that that's actually how we kind of actually started talking on, on Twitter. And it, it, it's interesting because it can be really nice to have these conventions to lean on, even if, you know, they, you, you risk maybe going in the wrong direction sometimes because of the conven- conventions. As opposed to- I think you're totally right. Sometimes in React, it can feel so overwhelming because you have all these- you know, when you're you're first approaching it, because you have all these different things, but they're all just a component. And until you have the skills, it's hard to recognize like what, you know, what each one falls into. And you really can't assume much about them until you've actually looked at the code. And, you know, that can be really daunting sometimes if it hasn't been done just right.

[00:18:13] James K Nelson: Yeah, yeah, so it it can take a a little while, I think, before you can really- even if you've been doing it for a long time, I think every different project is is different is one of the big problems as well. Like you might have to create an app which doesn't have any routes and then you're stuck because it's like, what do I do now?

[00:18:30] Michael Chan: Absolutely. So um you have a very unique platform for teaching people React. Uh, tell me a little bit about uh Frontend Armory.

[00:18:45] James K Nelson: Yeah, so Frontend Armory is my platform for teaching React and JavaScript and just frontend engineering in general. And the the main feature of it is it encourages interaction. So it's got this editor called DemoBoard in it. And you can use DemoBoard yourself if you're learning, but it's also there so that authors can actually quickly write So the whole idea behind it is that it should be should be easy to create interactive content, which encourages the people who are learning, encourages students to get in and try out examples and try everything out as often and as uh early as possible. So it's it's basically it's trying to teach through, I guess, I don't know what it I forget what it's called. There's a little there's a book called The Little Schemer and

[00:19:35] Michael Chan: Oh yeah, yeah.

[00:19:36] James K Nelson: It teaches through asking questions. So you read that?

[00:19:39] Michael Chan: Yeah, oh, absolutely. It uses the, what do they call that, the Socratic method?

[00:19:43] James K Nelson: Yeah, that's exactly the word I was looking for, the Socratic method. So I mean, I don't think I'm actually gonna be able to create a Socratic method introduction to React as much as I would like to, 'cause no one would read it. But um, that was kind of my my thought is how could I turn the little schema into a website and front-end memory, stuff like that.

[00:19:59] Michael Chan: That's interesting. I haven't read that book in a really long time, but if I remember correctly, it's like they, I do remember it having a profound impact on the way that I I thought about uh teaching, uh because it it has it illustrates two interesting things. Like one, it asks the questions, right? So it's like, hey, you know, how do you do this? And then you do it and then it asks another question that kind of uh will either build on that concept or maybe break the previous one down, which is very fascinating. Um, but the other thing is I I remember reading those chapters and finding that they would give you just- they would give you a sentence about the thing that they're telling you about, and it would be true in isolation, but they would keep amending to it and kind of like introducing these things that make it not completely true. Right. Um, and I just- I loved, loved that model of uh of teaching.

[00:20:54] James K Nelson: Yeah, it reminds me of high school chemistry where you learn all this stuff and then you get to the next year and you're like, well, everything you learned last year was wrong. And it's like- But the good thing about that is that you don't get overwhelmed as you learn, because if you've tried to teach someone university chemistry when they're like 14 or 15, it just- that no one would get anywhere because they'd be like, well, I'm not doing this. So if you teach something and you can feel confident with that and you feel like, okay, I understand this now, then you can say, well, you're wrong, but you know, those gradual steps.

[00:21:25] Michael Chan: You're wrong, but you're wrong in the right direction.

[00:21:28] James K Nelson: Yeah, that's right. You've built some sort of intuition for underlying concept, which is important to have. And that's gonna be useful, whether it was exactly correct or whether it's a little bit- it has more- there's a little bit to build on. But yeah.

[00:21:40] Michael Chan: I think this this is interesting, and it really kind of plays into that analogy that you you drew earlier in in actual, like, supporting a product over the phone, um of of of really giving someone the confidence to continue to move forward. Uh kind of coming alongside them and and saying, like, hey, you can actually do this. I know that it's like daunting or worrisome, uh but but but you can do this. Um and that's something I I find fascinating about you having developed your own platform for allowing people to learn by doing is that you've taken away all of those things that are the initial hurdle for uh a lot of people wanting to learn, which is like, okay, well, you have to install Node. You have to— uh I mean, because even if you do create-react-app, Like some, some people, it's like they don't have Node installed on their system, right?

[00:22:33] James K Nelson: Yeah, exactly. One of my most popular videos that I've ever done, I did it a few years ago, is how do you install Node.js? And hundreds of people have subscribed to my YouTube channel just because I have this how to install Node.js video. It's way more popular than anything I've done on React. So it's- Yeah.

[00:22:49] Michael Chan: It's amazing. Cause we, we forget sometimes, you know, just how many things are like in between you know, writing a React app and like just getting started. I I love that that one of your most popular videos is is getting that installed because I I think that is, you know, there's so many things, there's so many things that we just assume uh that can't really reasonably be assumed. Um I think that's even like going back to the beginning of our conversation, like, you know, illustrated by like- Yeah. You know, just being in Japan, it's like they name the blocks, not the streets. It's like there's so many things that we just kind of carry uh into, you know, every conversation as assumptions that, you know, are really hard to assume if you're if you're just getting just getting started. So you have a course, uh talking about just getting started, you have a course um called React and Bacon, and it leads you through like how to build something that'll actually make you money on the internet. Uh tell me about that. I love that premise. So much. So tell me about that course and kind of what the purpose of it is.

[00:23:56] James K Nelson: Okay, so, well, I started with one called React Without the Buzzwords, and that just kind of teaches React. But the the thing that people ask is like, okay, I know how to use like elements and components and stuff, what am I actually gonna do? And I mean, even if you know how to use elements and components, there's so many different pieces involved in creating a real application. So like what build system are you gonna use? What API are you gonna use? What backend? 'Cause you're gonna need a backend if you're gonna create something. You might not wanna build the backend yourself, but you're still gonna have to think about that. Yeah. How are you going to structure it? So what router are you gonna use? How are you going to style your components? There's all of these different things, there's all of these different tools, and it's just, I think there's a difference between learning React and learning how to build something with React. They're like two different problems. And so what I wanna do with React and Bacon is teach you how to build something of React. So basically you start from uh npm init and then build something which can accept payments and you could actually use this like a subscription box website. So it's actually gonna create a real product which you could sell stuff with if you wanted, or you could build on it to create like a SaaS, software as a service product or something like that. That's the idea behind it.

[00:25:12] Michael Chan: That's awesome. One of my uh favorite Rails tutorials is uh railstutorial.org and I remember the the thing that I took away most from that course was like in the first, I think it's like the first chapter or the first couple of chapters, he just has you deploy like a stock generated Rails app to Heroku. And I remember thinking like, yes, like that is, that's the most important thing, right? Like I'm I'm here to learn how to make something, right? Like I I I'm not here to like learn like the the best practices of Ruby or whatever. Like I had an idea for something and I landed on your site because I want to put it out into the world. And I remember finding that that you know just generated Rails app that was like sitting on Heroku somewhere more inspiring than than any other tutorial I'd been through before. Because I already had something. Like it was just waiting for me to fill it out.

[00:26:06] James K Nelson: That's that's really interesting. Um I actually the that's what I'm working on now for React and Bacon is to play basically a tiny little landing page to Firebase, which is kind of, I guess, the Heroku of React now, it seems. So

[00:26:21] Michael Chan: yeah,

[00:26:21] James K Nelson: it's uh it's good to hear, good feedback.

[00:26:24] Michael Chan: So for people who are just getting started today, uh I I I want to kind of like bring this home a little bit, but what are some good places for them to start? Like what are some like core concepts that you think are gonna be really important for for any of them? Whether that be kind of newer JavaScript concepts or, you know, new React stuff. Obviously, React has changed a lot over the last, you know, few months. What are the things that they should just really be hammering on as their their first principles?

[00:26:57] James K Nelson: Yeah, so I guess it depends on where you are at the moment. So if you're already pretty familiar with JavaScript and and like recent JavaScript because you've been using, say, or Angular or something, then uh I think it's the best place to start with React itself is probably elements and JSX and just understanding what's going on there. So I I guess the way I would decide what to work on or what to study is, every time you watch a video of Jeff Bezos, he asks this question, which is, he says this thing, which is that people ask him what's gonna change, but he thinks what's not gonna change is more interesting. Like what's gonna be the same in 5 years? And for him, it's that people are gonna want cheaper prices and faster delivery. And for the React world, it's still gonna be using JSX and elements. So like getting as good an understanding or as deep an understanding of elements as you can, I think is like a really important thing. And the the great thing about it is, you know, it's gonna be the same in however many years. So it's not something that's gonna be a waste of time no matter how you look at it.

[00:27:59] Michael Chan: So for elements, that would be uh kind of the different models of like composing elements, kind of what the like how to, work with children, um, you know, JSX, just kind of like what that actually means and how that, that relates to the underlying, you know, createElement functions.

[00:28:17] James K Nelson: Yeah. Yeah. I think that's really important to understand. Like one of the pieces of feedback I get often, because I run meetups in Tokyo. If you're ever in Tokyo and you want to speak, come talk to me. We're always looking for speakers. But, um, so if we're ever looking, if we're waiting for people to set up a projector or something like that. One of the little talks I'll go into is what the difference is between an element and a component and uh instance. And people always come up to me and I get more good feedback from like impromptu talks on that than I do from things I've been preparing for like days. So I think it's it's really important to understand how JSX maps to createElement, what createElement returns, the fact that it's an object and that it's not like mutable, things like that. So that's that's what React Without Buzzwords goes into, but you can you can learn a lot of that on the React website now. The documentation now is great. It's improved a lot over the past few years.

[00:29:14] Michael Chan: Now if someone wants to get into React eventually, but they're really coming from from from no web, no programming experience at all, what are some things that you see as like critical knowledge to be successful in just learning React?

[00:29:28] James K Nelson: Okay, so JavaScript's basic concepts, so things like uh mapping over arrays, uh is really important. Just getting an understanding of array functions, getting an understanding of functional programming. So it kind of sounds funny, but reading a little Scheme would be a really good way to improve your understanding of sort of the foundation concepts you need for React. Um, also just messing around with with Node.js, I think. Like, because even if your React app doesn't use Node.js, uh React world is built on Node because that's what Create React App uses, Next.js uses it, Gatsby uses it. You're gonna be working with Node. And so even if you don't want to, it's really important to get familiar with how all of that works too.

[00:30:13] Michael Chan: Yeah, that's interesting. There are so many things that I feel like we we take for granted in that space in particular. Um, yeah, I was at a a training the other day and someone had had had done like beautiful work in, you know, setting up a little server that was able to, you know, run all the examples and give you great errors and all that kind of stuff. But uh I was sitting next to someone who had zero command line experience. And when they wanted to change the examples, they're like, how do I quit this thing? It's like, well, Control+C, which makes no sense. You know, if you're not used to that, like you would have no context. Right. For why Ctrl+C would do anything.

[00:30:52] James K Nelson: I mean, I grew up using the command line 'cause one of my first computing experiences where I had to like figure out how to get extended memory working so that my favorite game would work again, my DOS game would work after the computer shop messed up the configuration files. But even then, like I'd been using command line since I was like 8 and I got into, I think, maybe Node.js like a long time ago now, or Rails, I think it might've been before that. And I was like, how do I quit the server? I didn't- like hours of Googling to figure out I needed to type Ctrl+C. So I put that into my tutorials now. I'm like, you need to press Ctrl+C to close this. Cause I just, I remember that.

[00:31:29] Michael Chan: It's completely not intuitive. Oh man. But yeah, I think, I think that's interesting. It sounds so weird to say, you know, today, like, oh, if you want to build a website, you have to learn Node. Uh, but it's, it's totally true. I mean, at least like a basic understanding of of that and kind of the modules, which is kind of its own, you know, bag of hurt because, you know, the different module systems, but it's it's all stuff that you have to know.

[00:32:00] James K Nelson: Yeah. Yeah. I I think you can kind of get away without knowing too much about a lot of the module systems if you stick with Create React App. I I think Create React App is is great because it just Makes it so you don't have to understand how webpack works anymore. You don't have to understand really how Babel works. Like you can focus at least at the start on figuring out how React works and you can come back to that later. Whereas at least for you need to at least be able to install create-react-app and um and understanding ES6 modules is important. A lot of uh JavaScript introductions don't go into that because the browser doesn't support them, so that's

[00:32:37] Michael Chan: Yeah.

[00:32:37] James K Nelson: And there's a lot of little tricky bits there too. So that's really important to get.

[00:32:42] Michael Chan: Now, do you feel like learning HTML uh inside and out is going to be helpful or uh challenging to your understanding of React elements?

[00:32:53] James K Nelson: Mm. That's a good question. I think it'll be helpful because you would have to understand what the different elements are. That's important for accessibility. You don't want to just make everything a div, but at the same time, you can just make everything a div when you're starting out. I mean, it's not gonna hurt if you're just creating little toy apps to learn how JavaScript works. So, and even now, I mean, I only remember most of the HTML elements which existed 15 years ago. I I have to like Google to find different elements when I want to use something other than like a div or a span or a paragraph tag.

[00:33:33] Michael Chan: It was a lot easier back then, wasn't it?

[00:33:35] James K Nelson: It was.

[00:33:36] Michael Chan: So, as we wrap up, I just want to give you an opportunity to talk about some of the open source that you're working on. Uh, I know that that recently you've been um kind of talking about getting ideas for and uh working through um Navi or Navi. I'm I'm not sure how you pronounce it. You can correct me on that. Uh, but tell me a little bit-

[00:33:55] James K Nelson: You're right.

[00:33:56] Michael Chan: So, tell me a little bit about uh what you're working on there, what your goal is for that way of navigating around a React app?

[00:34:04] James K Nelson: Yeah, so my original goal with Navi was to make a router which can is composable. And so I started it even before React Router 4 existed, and then React Router 4 existed and I was like, well, that's composable. So, but um, I think mainly Navi has come out of Frontend Armory because For Frontend Armory, I wanted to be able to do it as a statically built website. So I want all of the files to be built statically at build time and then just put on S3 or uh Netlify or any of those. And so Navi is designed to make that possible and to make server rendering of the same stuff possible as well. So it's it's really focused on building websites as opposed to apps, I guess. And and part of that is it's got a big focus on on pages. So I think kind of like in Rails you'd have a controller and so you'd be able to just say, I want this data for this page, and then you'd call render and then you'd pass all that data to the view and then it would just render it. And so I'm going for a similar kind of model with Navi.

[00:35:10] Michael Chan: Right.

[00:35:11] James K Nelson: Where you have these route functions and they pull all the data in that you need for a page, uh and then they just render it. So pass it to a React component, which is kind of like your view. So that's the idea. Um, the idea is a little bit nicer than the the reality, I think.

[00:35:30] Michael Chan: It always is, isn't it? Like it always takes takes a lot a lot of time to actually like make those two kind of somehow meet in the middle.

[00:35:37] James K Nelson: Yeah, especially with GraphQL and Firebase, which let you have these dynamic queries so that the data keeps updating. So at the moment, it works great if your data is static. It it works as well if your data's not static, but it's I mean I don't think it works any worse than the alternatives. Like I React uh Next.js has getInitialProps, which is also like a get all the data at the start. And

[00:35:59] Michael Chan: yeah,

[00:36:00] James K Nelson: yeah, so it's actually figuring out how to make it work so that you can specify your data dependencies for each route and then they'll stay up to date is is what I'm working on now when I get time, which I don't. But yeah, that's that's what I'm aiming for is to figure that out.

[00:36:15] Michael Chan: Awesome, well if people, want to help you out with that, where's the best place to uh to to find that and contribute to it?

[00:36:22] James K Nelson: Okay, so it's on GitHub. It's under the Frontend Armory uh account, which is github.com/frontarm. And yeah, if you leave an issue there, there's— it's the most active project I've ever had, which isn't saying that much, but people do leave issues and make pull requests. And so you can contribute there if you'd like to help out, that'd be great.

[00:36:42] Michael Chan: Awesome. Well, if people want to find out more about you or just uh talk with you, what's the what's the best way to uh to start a dialogue with you?

[00:36:51] James K Nelson: Um, probably the best way is to get in touch is Twitter. So I have direct messages open, you can send me a message anytime. If you just want help with React or with Navi or any of that, then give me a message. I always like getting messages. And sometimes I don't reply all that fast, but usually I try and reply like in a day. I don't have that many messages yet.

[00:37:16] Michael Chan: Nice, and how can people sign up for uh Frontarm?

[00:37:19] James K Nelson: Okay, so Frontarm is frontarm.com and there's a whole bunch of free content. Um, the blog is, is everything on the blog is free. I haven't been updating that as much as I should be lately, but that's 'cause I've been working on React and Bacon. And as that, I think we're up to about, almost up to 3 sections now. And for each of those sections, I'm gonna start putting some free content on the blog. So. Yeah, if you go to frontend.com, you can just, uh, you can read whatever's available for free. And if you decide you wanna go into the details and dive more into React and Bacon, then just uh follow the links, figure it out.

[00:37:57] Michael Chan: Awesome. Well, I'm really excited to see how the the the rest of uh React and Bacon pans out because um I just, I know that that was the the critical moment for me in learning Rails was like finding that tutorial that helped me put something online that was actually meaningful to me. So, uh, I hope that you can be the the one to kind of inspire the the React generation of developers in the same way.

[00:38:23] James K Nelson: I'm gonna give it my best. That's what we say here in Japan.

[00:38:26] Michael Chan: Awesome. Well, James, thank you so much for your time. I really appreciate you coming on the show and uh sharing what you know with us.

[00:38:33] James K Nelson: Thank you for having me. It's been been a lot of fun.

[00:38:36] Michael Chan: Yeah, yeah. It's it it's my pleasure. And uh, you know, I hope to have you on again soon after you've inspired the next uh group of React developers to kind of do their best.

[00:38:48] James K Nelson: Yeah, well, let's be fun to see how it goes.

[00:38:50] Michael Chan: Hey, thanks for listening to our show. You stuck around, so you must have liked something about it. Uh, all of us who work on it appreciate your time and are grateful that you're here to listen. A big thanks to James for coming on the show and sharing with us. See what he's up to at frontarm.com and level up your career by mastering the things that won't If you're new to React, I cannot reiterate enough how important it is to develop a strong sense of React elements, components, and what the heck it is that JSX does. Mastering these skills will serve you well. Thanks to G2i, first for being a sponsor of this show and making this episode possible, and second for providing a great hiring platform built exclusively If you need a React developer on your team, visit g2i.co today and trust them to find you an amazing one. 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 speck.fm to find other shows. It 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 email. Thanks so much for giving us your attention. We'll be in your ears again next week.