import React, { useState } from 'react';
import classes from './Counter.module.scss';
const Counter = () => {
const [count, setCount] = useState(0);
const increment = () => {
setCount(count + 1);
};
return (
<div>
<h1>{count}</h1>
<button className={classes.button} onClick={increment}>
increment
</button>
</div>
);
};
export default Counter;
WARNING in ./src/components/Counter.tsx 9:99-113
export 'default' (imported as 'classes') was not found in './Counter.module.scss' (possible exports: button)
@ ./src/App.tsx 2:0-43 5:72-79
@ ./src/index.tsx 3:0-24 5:17-20
При сборке проект выдает такую ошибку.