React-select: Rendering a link as the no results text

Created on 13 Dec 2016  路  2Comments  路  Source: JedWatson/react-select

Very simple, is it possible to render a clickable link instead of the "No results found" text?

Most helpful comment

Yes. You actually can pass a node to noResultsText option. For example:

...
noResultsText={<a href='youdestination.com'>Try this link</a>}
...

All 2 comments

Yes. You actually can pass a node to noResultsText option. For example:

...
noResultsText={<a href='youdestination.com'>Try this link</a>}
...

Hello -

In an effort to sustain the react-select project going forward, we're closing old issues / pull requests.

We understand this might be inconvenient but in the best interest of supporting the broader community we have to direct our limited efforts to maintain the latest version.

If you feel this issue / pull request is still relevant and you'd like us to review it, please leave a comment and we'll do our best to get back to you.

Was this page helpful?
0 / 5 - 0 ratings