Transform items before using the pagination react

How i can transform items before using pagination in the instant search and before sending data to that costume hits ??