explorer
explorer copied to clipboard
Remove all full import of React
In each file we should import just what is required. This will allow tree shaking during build and potentially reduce bundle size. instead of
import * as React from 'react'
...
React.useState(...)
import { useState } from 'react'
useState(...)
As of today at least 74 files are affected.