Recharts is not working for the React with typescript
You didn't install recharts, you only installed its type definitions.
Try:
yarn install recharts
When you install a @types/<package-name>
package, you aren't installing any runnable code. You are just installing the type definitions for a package that doesn't provide it's own types. You still need to install the package itself.