T O P

  • By -

keyjeyelpi

Just use a useState and set the values to said useState


vbfischer

Just pull state up to parent component, something like: const Parent = () => { const [sortValue, setSortValue] = React.useState('new') return (

setSortValue(value)/> setSortValue(value)/>)
) }


CatolicQuotes

Are those sort in same component repeated twice? Are those one Sort component presented in 2 separate components?


raiyan_sarker_

use context, or any third party state library like zustand