I'm creating a project where I need to render almost 2100+ select option. But whenever I render with default bootstrap select option than I render too slow. That's why I do use react-select & react-window. I follow many way to solve it but can't.
How can I solve it?
2100+ data with useSelector from redux store.2500 or more. But my data are coming from redux store.data = [{"title": "A", "key": "a", "code": "512"},
{"title": "B", "key": "b", "code": "513"}
.....
]
select option with title.useSelector that's why I can't get data outside component.import React from 'react'
import { useSelector } from 'react-redux'
import Select, { createFilter } from 'react-select';
import { FixedSizeList as List } from 'react-window'
const Board = () => {
const icons = useSelector(state => state.icons.iconsData)
return (
<>
<div className="container py-5">
<div className="d-flex flex-row">
<div>
<p>Select Option</p>
<Select options={icons}/>
</div>
</div>
</div>
</>
)
}
export default Board