I have a problem. I want to make buttons section, where user can click buttons to filter some content. When user click on 'all' button, all other should be turn off (change its color to initial, not active) in this moment. Also, user can check multiple buttons.
I can't get how to do this.

Example of JSON:

```
{
    title: 'All',
    id: 53,
  },
  {
    title: 'Im a parent',
    icon: <Parent />,
    id: 0,
  },
  {
    title: 'I live here',
    icon: <ILiveHere />,
    id: 2,
  },

```

example of code: <https://codesandbox.io/s/sleepy-haze-35htx?file=/src/App.js>

Its wrong, I know. I tried some solutions, but I guess I can't get how to do it correctly.

With this code I can do active multiple buttons, but I can't get how to make conditions like

if (item.title === 'all){
TURN\_OFF\_ANY\_OTHER\_BTNS
}  

I guess I should store checked buttons in temporary array to make these operations.

Will be really thankfull for help.