Skip to content

sihlemkaza/redux-experiment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Redux Experiment

Demo Url

This project was created to test the use of redux for ui state management.

RGBA (Red, Green, Blue, Alpha) color values are stored in the redux store and are updated and retrieved by multiple components.

Project Structure

  .
  ├── public                  
  ├── src
  │   ├── components     # UI components
  │   ├── redux          # redux state slice
  │   ├── util           # helper functions
  │   └── App.js
  │   └── index.js       # redux store 

Redux Dependencies Used

Running the code

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.

The page will reload when you make changes.
You may also see any lint errors in the console.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

Deploying to GitHub-Pages

Update the homepage property in the package.json file to this format: https://{username}.github.io/redux-experiment where username is your github username.

  npm run deploy

This will cause the predeploy and deploy scripts defined in package.json to run.

Under the hood, the predeploy script will build a distributable version of the React app and store it in a folder named build. Then, the deploy script will push the contents of that folder to a new commit on the gh-pages branch of the GitHub repository, creating that branch if it doesn't already exist.

More deployment steps

About

Redux experiment with ReactJS. Used reduxjs/toolkit, redux & react-redux. Demo on github-pages.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published