pass through `id` prop
See original GitHub issuejust as className
is appended to the class name of the rendered element, the passed in id
attr should be used as the id
for the rendered element.
This will allow <Select>
components to work with the alternative label form, e.g.
<label htmlFor='my_input'>my input</label>
<Select id='my_input' {...props} />
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Pass id as props in react-router-dom - Stack Overflow
When I go to the next url img / 2, the router sends me the right page, but the id is not present...
Read more >Special Props Warning - React
Special Props Warning ... Most props on a JSX element are passed on to the component, however, there are two special props (...
Read more >Passing ID vs. Entity as props in React | by Marco - Medium
Passing props between components is inevitable when writing React applications. But have you ever wonder: Should the parent component pass ...
Read more >Prop Id Cards - Etsy
Check out our prop id cards selection for the very best in unique or ... 4 News Press Pass, ID Badge, Name Tag...
Read more >How to Pass Props Through React Router's Link Component
In this up-to-date post, you'll learn how to pass data through React Router's Link component to a new route.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
in version
>=
2 to set the id on the Select use<Select inputId="foo" />
.I just noticed there’s an
inputProps
prop which allows you to set theid
on the input itself. Can you try that out?