Skip to content

useGeneratedId - passing ID  #65

@tommmyy

Description

@tommmyy

common use case:

const Foo = ({id: idProp})=> {
  const idGenerated = useGeneratedId()
  const id = idProp || idGenerated
  //...
}

let support following:

const Foo = ({id: idProp})=> {
  const id = useGeneratedId(idProp)
  //...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions