I've started a new job and noticed all their imports are done like:
import * as React from 'react'
And subsequently, they'll use React hooks like so:
React.useEffect(() => {})
Are there any pros/cons to importing it like that instead of the more conventional?:
import React, { useEffect } from 'react'
Will this import everything from React
into each file?
Thanks.
ETA - I did ask my coworkers, but the response was, "Not sure, it's what we've been doing so we do it to stay consistent now" lol