Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chandrakiran-dev/lwc-redux
Integrate Redux with Lightning Web Component
https://github.com/chandrakiran-dev/lwc-redux
lightning lightning-component lightning-web-components lwc lwc-redux redux salesforce salesforce-developers salesforce-lightning
Last synced: 3 months ago
JSON representation
Integrate Redux with Lightning Web Component
- Host: GitHub
- URL: https://github.com/chandrakiran-dev/lwc-redux
- Owner: chandrakiran-dev
- License: mit
- Created: 2020-02-05T03:24:23.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-10-30T07:12:18.000Z (about 3 years ago)
- Last Synced: 2024-08-02T12:21:28.253Z (6 months ago)
- Topics: lightning, lightning-component, lightning-web-components, lwc, lwc-redux, redux, salesforce, salesforce-developers, salesforce-lightning
- Language: JavaScript
- Homepage:
- Size: 105 KB
- Stars: 54
- Watchers: 8
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-lwc - Redux
README
# Introducing Redux with Lightning web components(LWC)
[LWC-redux](http://www.lwc-redux.com/) is a [LWC](https://developer.salesforce.com/blogs/2018/12/introducing-lightning-web-components.html) binding for [Redux](https://redux.js.org/introduction/getting-started#basic-example). It will allow your Lightning Web Components to read data from a Redux store, and dispatch actions to the store to update data.
LWC-redux helps you to write application that behaves consistently and provide state management to the application. It's also separate the JS business and design layers.
## Installation
To install the LWC-redux, we only need to click on the below button. It will redirect you to another page where you can select production/sandbox org and proceed with 'Login to Salesforce' button.
[Click here to install](http://www.lwc-redux.com/quick-start#installation)There are two types of developer processes or models supported in Salesforce Extensions for VS Code and Salesforce CLI. These models are explained below. Each model offers pros and cons and is fully supported.
## Why Use LWC Redux?
Redux itself is a standalone library that can be used with any UI layer or framework, including LWC, React, Angular, Vue, Ember, and vanilla JS. Although Redux and React are commonly used together, they are independent of each other.
If you are using Redux with any kind of UI framework, you will normally use a "UI binding" library to tie Redux together with your UI framework, rather than directly interacting with the store from your UI code.
LWC Redux is the Redux UI binding library for LWC. If you are using Redux and LWC together, you should also use LWC Redux to bind these two libraries.
##### It is the Redux UI Bindings for LWC.
##### It Encourages Good LWC Architecture.
##### It Implements Performance Optimizations For You
[Click here for more information](http://www.lwc-redux.com/why-use-lwc-redux)
## Basic Tutorial
To see how to use LWC Redux in practice, we’ll show a step-by-step example by creating a todo list app.
[Click here for basic tutorial](http://www.lwc-redux.com/basic-tutorial)
## Examples
Go to Examples folder in the repository or [refer examples page](http://www.lwc-redux.com/examples)
## CCI Integration
Add to your cumulusci.yml:
```
sources:
lwc-redux:
github: https://github.com/chandrakiran-dev/lwc-redux
```Add to your cci flow:
```
task: lwc-redux:deploy
options:
path: force-app/main/default
```