Full React Tutorial #9 - Intro to React Dev Tools
Skills:
Frontend Performance60%
Key Takeaways
Installs and uses React Dev Tools for Chrome and Firefox to inspect and debug React applications
Full Transcript
alright and gang so before we go any further i just wanted to take a quick side step and let you know about an extension for chrome and firefox called react developer tools and you can find it for chrome on the chrome store right here just click on the install button mine says remove because it's already installed and you can also get it for firefox by going to the firefox add-ons library and installing it right here so i'll leave the link to both of these pages down below so you can install whichever one you need so what react developer tools do for us is integrate with the browser development tools and give us extra features that we can use on any website created with react so if we take a look over here we can see two extra tabs we have components and profiler now the one i use the most is components right here and this basically gives us a component diagram or component tree of our current application so if we're just taking nosy at these things if we hover over one of these different components we get some extra information about that component down below so this first one right here this is to do with props now we're not covered props yet so this isn't going to make much sense at the minute so we'll move on for now and down here we can see the source file we also get some tabs over on the right as well or rather icons now if we click on this one this is to do with suspense which is kind of beyond the scope of this tutorial this one right here we can click on this to find whatever dom element this represents in the elements tab so if i click on this then it grabs us this div with the class of app and remember that is the root element inside the app component right here so it finds us that element now if i did that for a different component for example to navbar if i click on this it grabs us the nav bar okay okay so this one right here this logs all of the data about the components to the console so if i was to click on this then go to the console we can see all of this information about the app component including any props the dom nodes the location of the file etc so let's go back to components and then finally this thing right here we can view the source file so the javascript file of this component in the dev tools as well okay so if we click on the home component this is going to be a bit more interesting because we have data inside the home component remember we have this thing right here we have these two pieces of state and they change when we click on this button so if i now come down here we can see this property called hooks and we have a state hook remember this is a hook use state so it says we have a state for luigi and one for this value 30. now if i was to click on this button well let's refresh first because they're not the initial values i'm going to refresh and then click on home we can see now this is the state mario and 25 if i click on this we can see hopefully the state change down here as well so this tracks whatever the state of this component is so if we want to find that out quickly we can do by going to this components tab and looking at the hooks and the state okay so what about if we click on this thing right here log this component to the console so if we click on that and then go to the console and expand this information now we can see this property as well hooks and this is an array of data each one an object and each object represents the piece of state that we have so we have right here the value luigi and each one has an id as well and it says whether the state is editable which it is we can change it if we want to awesome so that's some extra information that we have about each component so that's just a brief introduction to react dev tools i did want to let you know about this tool which can be really helpful when you're developing testing or debugging your react applications now the best way to become familiar with this is to just dive in and play around with it and maybe we'll be jumping in from time to time too especially when we learn about props so we can see this value right here
Original Description
Hey gang, in this React tutorial we'll take a quick tour of the React dev tools, which you can add on to your browser. React dev tools adds extra functionality to the browser dev tools for React apps.
React dev tools for Chrome - https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi
React dev tools for Firefox - https://addons.mozilla.org/en-GB/firefox/addon/react-devtools/
🐱💻 🐱💻 Course Files:
+ https://github.com/iamshaunjp/Complete-React-Tutorial
🐱👤🐱👤 JOIN THE GANG -
https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg/join
🐱💻 🐱💻 My Udemy Courses:
+ Modern JavaScript - https://www.thenetninja.co.uk/udemy/modern-javascript
+ Vue JS & Firebase - https://www.thenetninja.co.uk/udemy/vue-and-firebase
+ D3.js & Firebase - https://www.thenetninja.co.uk/udemy/d3-and-firebase
🐱💻 🐱💻 Helpful Links:
+ HTML & CSS Course - https://www.youtube.com/watch?v=hu-q2zYwEYs&list=PL4cUxeGkcC9ivBf_eKCPIAYXWzLlPAm6G
+ Modern JavaScript course - https://www.youtube.com/watch?v=iWOYAxlnaww&list=PL4cUxeGkcC9haFPT7J25Q9GRB_ZkFrQAc
+ Get VS Code - https://code.visualstudio.com/
🐱💻 🐱💻 Social Links:
Facebook - https://www.facebook.com/thenetninjauk
Twitter - https://twitter.com/thenetninjauk
Instagram - https://www.instagram.com/thenetninja/
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from Net Ninja · Net Ninja · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Regular Expressions (RegEx) Tutorial #14 - Matching a Username
Net Ninja
Regular Expressions (RegEx) Tutorial #15 - Email RegEx Pattern
Net Ninja
Regular Expressions (RegEx) Tutorial #16 - Finishing Touches
Net Ninja
GraphQL Tutorial #1 - Introduction to GraphQL
Net Ninja
GraphQL Tutorial #2 - A Birdseye View of GraphQL
Net Ninja
GraphQL Tutorial #3 - Project (stack) Overview
Net Ninja
GraphQL Tutorial #4 - Making Queries (front-end preview)
Net Ninja
GraphQL Tutorial #5 - Express App Setup
Net Ninja
GraphQL Tutorial #6 - Setting up GraphQL
Net Ninja
GraphQL Tutorial #7 - GraphQL Schema
Net Ninja
GraphQL Tutorial #8 - Root Query
Net Ninja
GraphQL Tutorial #9 - The Resolve Function
Net Ninja
GraphQL Tutorial #10 - Testing Queries in Graphiql
Net Ninja
GraphQL Tutorial #11 - GraphQL ID Type
Net Ninja
GraphQL Tutorial #12 - Author Type
Net Ninja
GraphQL Tutorial #13 - Type Relations
Net Ninja
GraphQL Tutorial #14 - GraphQL Lists
Net Ninja
GraphQL Tutorial #15 - More on Root Queries
Net Ninja
GraphQL Tutorial #16 - Connecting to mLab
Net Ninja
GraphQL Tutorial #17 - Mongoose Models
Net Ninja
GraphQL Tutorial #18 - Mutations
Net Ninja
GraphQL Tutorial #19 - More on Mutations
Net Ninja
GraphQL Tutorial #20 - Updating the Resolve Functions
Net Ninja
GraphQL Tutorial #21 - GraphQL NonNull
Net Ninja
GraphQL Tutorial #22 - Adding a Front-end
Net Ninja
GraphQL Tutorial #23 - Create React App
Net Ninja
GraphQL Tutorial #24 - Book List Component
Net Ninja
GraphQL Tutorial #25 - Apollo Client Setup
Net Ninja
GraphQL Tutorial #26 - Making Queries from React
Net Ninja
GraphQL Tutorial #27 - Rendering Data in a Component
Net Ninja
GraphQL Tutorial #28 - Add Book Component
Net Ninja
GraphQL Tutorial #29 - External Query File
Net Ninja
GraphQL Tutorial #30 - Updating Component State
Net Ninja
GraphQL Tutorial #31 - Composing Queries
Net Ninja
GraphQL Tutorial #32 - query variables
Net Ninja
GraphQL Tutorial #33 - Re-fetching Queries
Net Ninja
GraphQL Tutorial #34 - Book Details Component
Net Ninja
GraphQL Tutorial #36 - Styling the App
Net Ninja
GraphQL Tutorial #35 - Making a Single Query
Net Ninja
Build Apps with Vue & Firebase - Udemy Course
Net Ninja
Updated Vue & Firebase Course (Udemy)
Net Ninja
Vue & Firebase Real-time Chat (Preview) #1 - Intro
Net Ninja
Vue & Firebase Real-time Chat (Preview) #2 - Project Structure
Net Ninja
Vue & Firebase Real-time Chat (Preview) #3 - Firestore Setup
Net Ninja
Vue & Firebase Real-time Chat (Preview) #4 - Welcome Screen
Net Ninja
Vue & Firebase Real-time Chat (Preview) #5 - Props in Routes
Net Ninja
Vue & Firebase Real-time Chat (Preview) #6 - Route Guards
Net Ninja
Vue & Firebase Real-time Chat (Preview) #7 - Chat Window
Net Ninja
Vue & Firebase Real-time Chat (Preview) #8 - New Message Component
Net Ninja
Object Oriented JavaScript Tutorial #1 - Introduction
Net Ninja
Object Oriented JavaScript Tutorial #2 - Object Literals
Net Ninja
Object Oriented JavaScript Tutorial #3 - Updating Properties
Net Ninja
Object Oriented JavaScript Tutorial #4 - Classes
Net Ninja
Object Oriented JavaScript Tutorial #5 - Class Constructors
Net Ninja
Object Oriented JavaScript Tutorial #6 - Class Methods
Net Ninja
Object Oriented JavaScript Tutorial #7 - Method Chaining
Net Ninja
Object Oriented JavaScript Tutorial #8 - Class Inheritance
Net Ninja
Object Oriented JavaScript Tutorial #9 - Constructors (under the hood)
Net Ninja
Object Oriented JavaScript Tutorial #10 - Prototype
Net Ninja
Object Oriented JavaScript Tutorial #11 - Prototype Inheritance
Net Ninja
More on: Frontend Performance
View skill →Related Reads
🎓
Tutor Explanation
DeepCamp AI