Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Documentation for renderFilteredItems() #3864
Comments
|
I figured it out. Would be nice with a short entry in the docs though. To other confused souls: <Suggest
// ...
itemListRenderer={props => (
<SomeMenuComponent>
{renderFilteredItems(props, <SomeNoResultsComponent />)}
</SomeMenuComponent>
)}
// ...
/>I assume the same is the case for the third argument, which would then represent an initalContent component |
|
the code itself is documented, which should appear in an editor. sorry it's not on the site. |


Environment
Question
Is there any solid documentation for the
renderFilteredItems()utility function exported from theselectpackage? It is briefly mentioned under theitemListRendererprops section of theselectcomponent documentation, but the only other mention I can find of it is in this issue #3281 ans well as a brief mention in a changelog.In the
itemListRendererprops section it is stated that it supports anoResultsstate, but it doesn't say how to use it and it doesn't render thenoResultsdefined on theSelect/Suggestcomponent..