Skip to content

Not able to set initial state with custom time: "18:10" #191

Open

Description

@Santoshku8287

I am trying to set initial state in React application with custom date, which I passed from setState.
Its getting blank.

Please help to fix this asap.

Activity

  1. manishsaraan commented on Sep 17, 2020

    @manishsaraan

    I am setting my custom time with moment set attribute.
    defaultValue={moment().set('hour', 18).set('minute', 10)}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions