lucid-ui
Version:
A UI component library from AppNexus.
16 lines (15 loc) • 358 B
JavaScript
export function onToggle(state) {
return {
...state,
isExpanded: !state.isExpanded,
};
}
// TODO: why doesn't typscript catch this when we `import * as reducers` from
// this file.
//
// export function doesNotExist(state: IExpanderState): IExpanderState {
// return {
// ...state,
// isExpanded: !state.isExpanded,
// };
// }