Client-Side or Server-Side: Where Should Filtering Occur?

My web application uses React on the frontend and a Java REST API on the backend. Should the filtering of items be executed in the client or processed by the server?

i think server-side filtering is more reliable but a bit of client filtering can help with quick previews. how u reckon the balance between performance and user experience?