explorer icon indicating copy to clipboard operation
explorer copied to clipboard

Remove all full import of React

Open beguene opened this issue 3 years ago • 0 comments

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.

beguene avatar Aug 24 '22 06:08 beguene