И
import React from 'react'
import { useSelector } from 'react-redux'
export const Component = ({ id }) => {
const element = useSelector(
state => state
.elements
.find(el => el.id === id)
)
return <div>{element}</div>
}
