Skip to content

yborunov/react-component-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Component Demo

<CommentsList /> app component that does request to API and renders comments list with body and author information of a comment.

Uses separation between smart and pure components. The pure component receives all required data via props and does not mutate its state internally, whereas the smart component conducts initialization logic before actually render pure component, in following order:

  • makes asynchronous request to API;
  • saves received comments list to its state;
  • renders actual component with comments prop from the state;

About

React Component Demo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published