Posts Robowars - A simple react and redux app
Post
Cancel

Robowars - A simple react and redux app

Robofriends is a simple app, made to demonstrate the principles of react. It uses a powerfull state management library redux.
the site is live at theguptaji.github.io/robofriends/

Quick starters

To get started after cloning

1
2
npm install
npm start

To deploy on github pages First update package.json with the hostname.

1
npm run deploy

To update packages

1
2
3
npm update
npm audix 
npm audit fix

Redux

This project use redux for state-management.
Why Redux?

  • Redux allows to change state in a flux-architecture. all the changes triggered by actions passes through a pipeline like this:> Action --> middleware --> reducer --> Redux-store --> make-changes
  • and then the changed state is passed on to the components/functions via props, so we can simply destructure props like this:
    1
    
    const { robots, searchfield, ..(all the state components)} = this.props
    
This post is licensed under CC BY 4.0 by the author.