ReactJS Course [3] - Ternary Operators, Lists in React, Css in React

ReactJS Course [3] - Ternary Operators, Lists in React, Css in React

PedroTech

1 год назад

62,578 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Michael Nakis
Michael Nakis - 10.08.2023 16:58

React bug maybe? Had a problem where no names was displaying when using "user" as the parameter ,only the ages were displaying. Changed "user " in the map section to "item" and started working

Ответить
Frog Nation
Frog Nation - 07.08.2023 15:48

hey pedro, very much thanks for the videos. I like your format and much easier to digest than other teachers. With that being said, I have a question in this episode:
{{ color: isGreen ? "green" : "red" }}....
How does JS know that "green" string is the green color? Is it already a defined variable in JS? Thanks

Ответить
Soura Tirera
Soura Tirera - 23.07.2023 18:23

Thank u so much...
Much love

Ответить
Pocket Academy
Pocket Academy - 20.07.2023 22:45

I struggled a bit at the start, took almost 3 days, but now got through it! And I've to say, your teaching is amazing!

Ответить
newton timos
newton timos - 03.06.2023 10:56

I love your teaching Pedro, you are the best of all ,you are so precise in your explanation

Ответить
DG investor
DG investor - 25.05.2023 13:57

thanks sir for this course I learn a lot from you

Ответить
srinath sri
srinath sri - 25.05.2023 09:58

nice pedro 😊😊👌👌👌👌👌👌

Ответить
Gabriel Araujo
Gabriel Araujo - 23.05.2023 18:49

Pedro, your videos are amazing. I'm looking for a good tutorial/course on React to recommend to some friends who are learning javascript and after watching your videos I will 100% recommend your channel! I wish I had seen this video 1 year ago when I started with React. I wish you all the best,

Ответить
Jay Creations
Jay Creations - 18.05.2023 15:33

Awesome videos man, thanks a lot ❤❤❤❤❤❤❤❤

Ответить
Edson Sooraj Dsouza
Edson Sooraj Dsouza - 14.05.2023 08:53

This was well explained. The exercise you give at the end of every video is truly helpful

Ответить
BANIFO Project Managers
BANIFO Project Managers - 11.05.2023 19:38

Awesome videos, pedro. Thank you. quick question when you said we could use TERNARY operator why didn't we then use {planet.isGasPlanet} =true? { planet.isGasPlanet} : {planet.name};

Ответить
xiang qiao
xiang qiao - 27.04.2023 16:17

const planets = [
{ name: 'Mars', isGasPlant: false },
{ name: 'Earth', isGasPlant: false },
{ name: 'Jupiter', isGasPlant: true },
{ name: 'Venus', isGasPlant: false },
{ name: 'Nepyune', isGasPlant: true },
{ name: 'Uranus', isGasPlant: true },
]

Ответить
washiner Dev
washiner Dev - 21.04.2023 04:10

Pedro are you Brasilian???

Ответить
Rhina
Rhina - 16.04.2023 00:14

return (
<div>
{planets.map((planet, key)=> {
if (planet.isGasPlanet) return <h1>{planet.name}</h1>;
})}
</div>
);

it's not working in my own code for the exercise

Ответить
Sean Smith
Sean Smith - 05.04.2023 09:40

I thought the && was used for an 'and' in an if statement, and will only execute if both conditions are true? Like "if 1+1=2 && 2+2=4" do this....

I cant find much information on how this is used with just one condition as show in in this video planet.isGasPlanet &&

Ответить
Vandit Dubey
Vandit Dubey - 03.04.2023 20:16

if I want to conditionally render user whose age is above for eg 21, how will we do that ? can somebody please tell me ?

Ответить
Mariana Moscu
Mariana Moscu - 02.04.2023 10:09

Thanks you so much Pedro!

Ответить
Du Couteau Sect
Du Couteau Sect - 27.03.2023 13:05

const planets = [
{ name: "Mars", isGasPlanet: false },
{ name: "Earth", isGasPlanet: false },
{ name: "Jupiter", isGasPlanet: true },
{ name: "Venus", isGasPlanet: false },
{ name: "Neptune", isGasPlanet: true },
{ name: "Uranus", isGasPlanet: true },
];

Ответить
Bright Eyo
Bright Eyo - 26.03.2023 21:30

Why do these variable names sound like kids from stranger things

This course is very precise and straight to the point, easy to understand. Good job man

Ответить
C99 Saudi
C99 Saudi - 19.03.2023 16:23

i see that components it replacing 1,000 lines of code with 1,000 file of code

Ответить
akhila c
akhila c - 21.02.2023 08:14

Thanks for the videos , how to pass key values while we export component using props

Ответить
RogeClash
RogeClash - 12.02.2023 23:54

Amazing many thanks

Ответить
bluewonk
bluewonk - 10.02.2023 11:11

Just......thanks !

Ответить
Saptarshi Bhattacharya
Saptarshi Bhattacharya - 06.02.2023 06:58

just dont put the key attribute in your anonymous function for the same functionality. Otherwise prepending it with `_` is also fine. Therefore (name) => {return xyz} or (name,_key) => {return xyz} are both valid code which wont give any errors and are cleaner than adding useless html attribute too.

Ответить
Bhuvan Varma
Bhuvan Varma - 19.01.2023 17:55

in [eslint]
src\App.js
Parsing error: Invalid parenthesized assignment pattern.

what is this error

Ответить
R Y
R Y - 19.01.2023 08:38

hi Pedro amazing series . one issue i have is that react autocomplete is not working for my .js file like style or color .is there any solution for that . thanks again for this series .

Ответить
Дмитрий Снытин
Дмитрий Снытин - 18.01.2023 11:08

Thanks you from your work

Ответить
druid
druid - 08.01.2023 00:41

Yesterday I found u through ur react hooks tutorial and found this playlist. Omg bro ur gold

Ответить
ahmed nassar
ahmed nassar - 01.01.2023 13:27

Very easy explanation, and it's a great way to deliver the message. Keep going, Pedro's

Ответить
Niko Zen
Niko Zen - 30.12.2022 21:45

I enjoy to much your classes, I don´t have the knowlege to express in the proper way(in english) how I enjoy the way you teach, but I love the acurecy of the coments and the content and presentation of each task... thank you.

Ответить
navin kukreja
navin kukreja - 19.12.2022 08:47

You are Champ Man.. Keep going.. You are really doin good bro..

Ответить
ayyappa rock
ayyappa rock - 16.12.2022 08:18

super explanation by breaking into parts

Ответить
Lucky Tech Pro
Lucky Tech Pro - 10.12.2022 01:09

Keep it up man!!

Ответить
M.C. Rodriguez
M.C. Rodriguez - 07.12.2022 02:01

I believe the video length is great. Thanks for the content.

Ответить
K.
K. - 06.11.2022 12:32

Done! thanks a lot sir<3. Much appriciated!

Ответить
Kris Fafrowicz
Kris Fafrowicz - 26.10.2022 08:19

You are doing great on these videos! Really am learning alot! Thanks!

Ответить
Vivek Anand
Vivek Anand - 01.10.2022 21:51

Stranger things character 😁

Ответить
Blender Forever
Blender Forever - 01.10.2022 20:06

I tried the import and use method for planets array as well. It worked but is it a good practice

Ответить
Ay Ay
Ay Ay - 28.09.2022 06:18

What did you do to learn react?

Ответить
Samuel Ezeh
Samuel Ezeh - 15.09.2022 12:09

Thank you Pedro for making my react journey a smooth one. It might interest you to know you're my mentor. Thanks for doing what you're doing .

Ответить
read before you reply
read before you reply - 13.09.2022 14:32

Hey man thanks for the course, my code works fine but console has these errors React errors, 24 of them how can i remove them?

Ответить
Programing With Abhi
Programing With Abhi - 09.09.2022 22:05

Thank you bro for the Course ❤

Ответить
Kelechi Uroko
Kelechi Uroko - 07.09.2022 18:44

The exercises at the end of the videos standout for me. For someone like me who watch all through, it ensures i get to practice what i learned.. Nice work

Ответить
Vishwas Gupta
Vishwas Gupta - 03.09.2022 21:41

can anyone please explain why we didn't use function with props in Planets exercise? can we not use conditionals statements within Planets element if used with props : return <Planets name={planet.name} color={planet. Color} /> like this? in this statement somehow fit ternary operator.
Help me out guys cant figure when to use props and when not to.

Ответить
Zoltán Molnár
Zoltán Molnár - 02.09.2022 14:56

in my oppinion this playlist is standalone enough to be production-ready reactJS developer, very very good composition, thank you

Ответить
Raphael Rocha
Raphael Rocha - 30.08.2022 02:31

Hi Pedro! thanks for the video ! my answer was like this

return (
<div className="App">
{planets.map((planet,key) => {
return <Planet name={planet.isGasPlanet && <div>{planet.name}</div>}/>;
})}
</div>
);

did i overdo it ? was it a good way of using components ?

Ответить
Augis, Chadie Gil S.
Augis, Chadie Gil S. - 28.08.2022 05:08

❤️❤️❤️

Ответить