Reputation: 493
I am using next.js , react, and typescript.
When I use switch as a variable name, I get a typescript error.
How can I avoid the error?
'switch' is not allowed as a variable declaration name.ts(1389)
const Template: Story = (args: AtomSwitchProps) => <Switch {...args} />;
export const switch = Template.bind({});
switch.args = {
};
Upvotes: 3
Views: 6530