React select with value null

Posted by Jessica Taylor | Updated on

React select with value null. When setting the value for your select component, you will have to convert null to ”; and when receiving the value from your component, you will have to convert ” to null.

Here is a simple example:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers