React JS Tutorial - #4 Components & JSX

preview_player
Показать описание

To save up some time from writing our own stylesheets, let's pull in a CSS framework with built-in UI elements. One excellent choice is Bulma, which is a Flexbox-based no-JavaScript framework that unlike Bootstrap doesn't require any jQuery. And in the next video, we'll bring the countdown timer to live with state data!

Рекомендации по теме
Комментарии
Автор

Wow maan!! I can only say thank 10000times

Jadestonk
Автор

Tell me please what is going on? Until I add <Countdown /> in App.js everything is ok
But after adding it I have constantly the same error...
"Countdown(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null." ?!
And there is still something wrong with your ;) arrow function...
Although I have the same code as you, something is wrong because it shows the lack of ';' ?! as if he had a problem with ES6.
So maybe that's why he writes that he does not returns anything ?!
30 minutes later ;)
I made an experiment by changing arrow function with "classic" 'class Countdown extends Component'
and it works! Why? What is 'wrong' with the functional component?

handymanpawel
join shbcf.ru