I'm looking to make a change in the following code snippet
addToFilterCriteriaTree(componentData) {
let id = componentData.props.data.id;
this.state.filterCriteriaTree[id] = componentData.criteria;
}
My goal is to replace using state with creating an object called 'filterCriteriaTree' using setStorage and adding a new key to it