ReactJS Beginner Series: #7 - Stateless Components

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


When your components don't need to hook into React's lifecycle events (componentDidMount, componentWillMount, shouldComponentUpdate, etc...), it is recommended to declare them using the stateless functional component syntax.

In this video, we create the `Credit` footer component as a stateless component.
Рекомендации по теме
Комментарии
Автор

Thanks, for sharing.
I have one doubt : once we used export default () => in our credit.js than at the time of import we need to use like this {Credit} from '/components/credit'.

Actually Above step not included in video, so what will be better way to use import for export dafault() =>

abhishekbhatore
Автор

Great explanation, you should make a course in Udemy or etc, i think its a good opportunity for you, :)

someguyoninternet
Автор

Great series! Are you going to release new parts anytime soon?

darthShaq