How to build a temperature control app in React | Beginner React Projects

  Рет қаралды 13,749

Chris Blakely

Chris Blakely

Күн бұрын

Пікірлер: 50
@kevinweakley3970
@kevinweakley3970 Жыл бұрын
I appreciate you how explained what COULD happen, depending on how specific, key pieces of code were handled. Also, addressing the "Why?/How?" to how the program acted/did NOT act, as expected, if certain code blocks were set up was a great help. Finally, how, at the end, only "...return;" was needed - with the temperature reading limits - since there was nothing to input, & therefore no braces needed. Thanks!
@BEAGAMER
@BEAGAMER 2 жыл бұрын
i think this is the worlds best tutorial i ever see
@Kynetic4ce
@Kynetic4ce 2 жыл бұрын
This is a great tutorial for a beginner. Especially after going through the React Docs and looking to practice. I love how you've simplified the approach at every step and how one can improve their code. Thanks! My React Journey is definitely going to be sweet with these kinds of resources. Highly appreciate your time and efforts.
@carlosl-f2433
@carlosl-f2433 2 жыл бұрын
Damn...you explain this soo well...I was hitting a wall learning react and this just got me inspired again
@kensei1412
@kensei1412 Ай бұрын
thanks for the tutorial, the recap really helps a lot!
@traezeeofor
@traezeeofor Жыл бұрын
Thanks so much fo rthis very basic React project tutorial. Much needed for a newbie and much appreciated👍
@jeetsingh-sy5ij
@jeetsingh-sy5ij 2 жыл бұрын
Hey Chris, I rewatched your video, and i really love how you deal with the codes. I learnt something new again. Thank you very much.
@rohitpal6496
@rohitpal6496 Жыл бұрын
this project is assign to me in and i have made done thanks for this video .keep uploading this video love from india
@shamrosekjan598
@shamrosekjan598 Жыл бұрын
really appreciate this video i am a beginner and it helped me alot ...thank you so much
@abhikgupta
@abhikgupta Жыл бұрын
Here's a cleaner approach : import React, { useState } from 'react' const App = () => { const [temperatureValue, setTemperatureValue] = useState(10); return ( {temperatureValue}°C { if (temperatureValue > 0) { setTemperatureValue(temperatureValue - 1); } }}>- { if (temperatureValue < 30) { setTemperatureValue(temperatureValue + 1); } }}>+ ) } export default App;
@antomac4332
@antomac4332 2 жыл бұрын
Great tutorial Chris, thanks!
@jennyggf3556
@jennyggf3556 2 жыл бұрын
Great idea for a beginner project! tnx
@ajeigbejohnoluwaseyi8458
@ajeigbejohnoluwaseyi8458 4 жыл бұрын
Thanks, Chris! this is so good for beginners like me!
@ChrisBlakely
@ChrisBlakely 4 жыл бұрын
Thanks for watching man it really helps at this stage!
@sergeiiurevich8976
@sergeiiurevich8976 4 жыл бұрын
Thank you so much, Chris. Gonna practice the project today!
@ChrisBlakely
@ChrisBlakely 4 жыл бұрын
You're welcome Sergei thanks for the comment!
@vikashsindhania6149
@vikashsindhania6149 2 жыл бұрын
hey thanks a lot Love from INDIA..🙂
@pedrofernandez6799
@pedrofernandez6799 4 жыл бұрын
Really useful videos to get into React! Thank you.
@ChrisBlakely
@ChrisBlakely 4 жыл бұрын
You're very welcome!
@AdnS008
@AdnS008 Жыл бұрын
good staff , thanks mate
@kamaleshpparmar
@kamaleshpparmar 11 ай бұрын
Thank you Chris
@TopTalentBridgecanada
@TopTalentBridgecanada 4 жыл бұрын
Thank you so much it's was really helpful for beginner in building logic
@ChrisBlakely
@ChrisBlakely 4 жыл бұрын
I’m glad you enjoyed it !
@Richislav
@Richislav 2 жыл бұрын
Hello, thank you for your video!
@WillSmith-qt7me
@WillSmith-qt7me 2 жыл бұрын
Great tutorial. Thanks.
@mtzfox
@mtzfox Жыл бұрын
Liked the tutorial a lot! Only issue I noticed is that the color doesn't change orange or blue on the value you'd expect. When increasing it changes orange at 16, but when decreasing it changes blue at 13. Of course I could update the values to fix this, but I'm wondering if has to do with the component only rendering after the next cycle, and if there's a better way to organize my component to update the color on the expected value (15 and 14).
@woofcode3383
@woofcode3383 3 жыл бұрын
Thank you, great tutorial
@paulinegitonga6808
@paulinegitonga6808 Жыл бұрын
heeey ..this was really helpful thanks
@stanfarshtei1291
@stanfarshtei1291 4 жыл бұрын
Thank you for the project. I was wondering how we can make the buttons keep increasing or decreasing the value while pushed in? Can you make a tutorial on setInterval using React? Thank you for your share, a great beginner project!
@ChrisBlakely
@ChrisBlakely 4 жыл бұрын
Hi Stan! Yeah its possible, you would use the onMouseDown event to call a function that would increment the state by 1 every second (using setTimeOut as you mentioned). Then use the onMouseUp event to stop the timer/function from running. This is a good idea for a mini react project! I'll add it to my list - Thank you!
@ThePercivalGlyde
@ThePercivalGlyde Жыл бұрын
Thank you!!
@flyflor599
@flyflor599 2 жыл бұрын
Thanks!
@lawalmukhtar1456
@lawalmukhtar1456 4 жыл бұрын
Amazing ❤️❤️
@ChrisBlakely
@ChrisBlakely 4 жыл бұрын
Thanks Lawal!
@lawalmukhtar1456
@lawalmukhtar1456 4 жыл бұрын
@@ChrisBlakely looking forward to more of this educative content.
@andybeable8650
@andybeable8650 4 жыл бұрын
Hi Chris, really enjoyed this. I'm new to JS/React but found this super helpful. One question - I was trying to add an 'else if' statement to the decrease temperature function. I wanted to try and change your eg slightly to have the temp color as hot >= 15, neutral between 5-15 and cold below 5. I thought the following might work, but I must be doing something stupid here.. const decreaseTemperature = () => { const newTemperature = temperatureValue -1; If (newTemperature < 15) { setTemperatureColor('neutral'); } else if (newTemperature
@ChrisBlakely
@ChrisBlakely 4 жыл бұрын
Hey Andy, thanks for the message! Do you want to drop me an email and I can help you a bit better? hello@jschris.com
@mohitsaud2071
@mohitsaud2071 3 жыл бұрын
In Nepali we say excellent as "kada" and this tutorial is kada
@ChrisBlakely
@ChrisBlakely 3 жыл бұрын
Thanks for watching!
@Pareshbpatel
@Pareshbpatel 3 жыл бұрын
{2021-12-19}
@ssk7690
@ssk7690 Жыл бұрын
It is imp to note that he uses new temperature instead of temp +1/-1. Just do that in your react app and you'll know why I made this comment.
@dpak141
@dpak141 Жыл бұрын
= 30}>+
Shopping List using Hooks | React Project For Beginners
27:43
Chris Blakely
Рет қаралды 20 М.
How to make a Basic Form using React Hooks | Beginner React Projects
10:16
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
React Beginner Tutorial | Learn React by Building a Real Project
1:07:11
React Budget App Tutorial | Learn how to use the Context API
52:09
Chris Blakely
Рет қаралды 45 М.
React useState Tutorial & 3 Examples of When to Use it
15:16
Chris Blakely
Рет қаралды 2,2 М.
Build a Realtime Chat App in React Native (tutorial for beginners) 🔴
3:49:50
Search Filter in React JS - Filter Through Results
8:53
Code Commerce
Рет қаралды 165 М.
React JS Full Course | Build an App and Master React in 1 Hour
1:11:44
JavaScript Mastery
Рет қаралды 1,8 МЛН
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19