Skip to content

Extract hooks to expose methods such as onChoose() #27

@max-carroll

Description

@max-carroll

I am getting some styling issues as I am using grid layout (via Material UI), this problem could be solved by allowing some classNames to be passed to the div, or extracting a hook like useGooglePicker (see example below)

I'm happy to implement this, and I'm going to implement this in my fork, I suppose since this is the number one google picker library we should take responsibility to keep it up to date.

This could potentially be a breaking change so we could perhaps make this a major version increment

useGooglePicker = ( props ) => {
   
 return {
   handleChoose
}

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions