frontend/src/components/Problems/index.js
// I am not sure is this a good handle data from props
I am not sure is this a good handle data from props
I am not sure is this a good handle data from props
function handleFilter(e) {
    state.filter = e.target.value;
    dispatch({
      type: 'CHANGE_FILTER',
      data: ProblemData.filter((problems) => problems.name.includes(state.filter)),
    });
  }
function handleFilter ( e ) { state . filter = e . target . value ; dispatch ( { type : 'CHANGE_FILTER' , data : ProblemData . filter ( ( problems ) => problems . name . includes ( state . filter ) ) , } ) ; }
I am not sure is this a good handle data from props
I am not sure is this a good handle data from props