AG-2653 Put React Hook example together, update docs
This commit is contained in:
14
src-examples/simpleReduxHooksExample/gridDataActions.jsx
Normal file
14
src-examples/simpleReduxHooksExample/gridDataActions.jsx
Normal file
@@ -0,0 +1,14 @@
|
||||
export function updateRowData(rowData) {
|
||||
return {
|
||||
type: 'ROW_DATA_CHANGED',
|
||||
rowData
|
||||
}
|
||||
}
|
||||
|
||||
export function setCurrency(currencySymbol, exchangeRate) {
|
||||
return {
|
||||
type: 'CURRENCY_CHANGED',
|
||||
currencySymbol,
|
||||
exchangeRate
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user