Skip to Content
Full Stack Development with JHipster
book

Full Stack Development with JHipster

by Deepu K Sasidharan, Sendil Kumar N
March 2018
Intermediate to advanced content levelIntermediate to advanced
380 pages
9h 23m
English
Packt Publishing
Content preview from Full Stack Development with JHipster

State management with Redux and friends

React provides basic state management within React components, but sometimes it is not sufficient, especially when your application needs to share state between multiple components. State management solutions like Flux, Redux, and MobX and quite popular in the React world and JHipster uses Redux as the state management layer.

When should you use the React component state?
  • If the variable can always be calculated using a prop: Don't use component state, calculate the variable during rendering
  • If the variable is not used in rendering but to hold data: Don't use component state, use private class fields
  • If the variable is obtained from an API and is required by more than one component: Don't use component  ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Full Stack Development with JHipster - Second Edition

Full Stack Development with JHipster - Second Edition

Deepu K Sasidharan, Sendil Kumar Nellaiyapen
Jasmine Cookbook

Jasmine Cookbook

Munish Kumar

Publisher Resources

ISBN: 9781788476317Supplemental Content