Skip to content

How to get value of inputted date? #144

@artawood

Description

@artawood

Got a question. How do I get the value of the inputted date on the onChange event?
I'm using react hook
const [currentDate, setNewDate] = useState("")
Here's the code
<SemanticDatepicker onChange={evt => setNewDate(evt.target.value)}/>

I tried following the example in the Codepen with onDateChange but that doesn't seem to work in the new version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requestedreleased

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions