Originally posted: 2021-04-06
Fix the ReferenceError: defaultProps is not defined when using Grommet's DataTable Component.
yarn add typescript @types/react @types/node
ReferenceError: defaultProps is not defined
Did you forget to import React?
Add import React from 'react'
to the top of your file.
Consider using Typescript for future projects, as it will help you sort out these and many other similar issues.