0

I have this date Input:
enter image description here
I am trying to display a default value:

<Input value="2017-06-01" type="date" />

But, as you see above, it doesn't get displayed.
I have followed the Mozilla documentation:

You can set a default value for the input with a date inside the value attribute, like so:

<input type="date" value="2017-06-01">
2

1 Answer 1

1

Try to use defaultValue props

<Input defaultValue="2017-06-01" type="date" />
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.