import * as React from "react";
import { connect } from "react-redux";
import * as CSSModules from "react-css-modules";
const styles = require("./index.css")
const Home = () => {
return (
<div>
11111
</div>
)
}
export default connect(state=>state)(CSSModules(Home, styles))
the error is as follows
import * as styles from "./index.css";
if you write index.css.d.ts, the error is shown in figure 1.
ask the bosses