nice-modal-react icon indicating copy to clipboard operation
nice-modal-react copied to clipboard

Can the show method intelligently prompts those parameters?

Open george-es opened this issue 10 months ago • 0 comments

We create and register a pop -up window

type MProps = {
    name: string,
    age: number,
};

const M = NiceModal.create<MProps>(({ name, age }) => (
    <div>
        {name}-{age}
    </div>
));
NiceModal.register('M_MODAL', M);

When using it, you cannot intelligently indicate the parameters you need to pass

NiceModal.show('M_MODAL', {});

george-es avatar Mar 28 '24 07:03 george-es