Reputation: 365
For some reason if I try and use <React.Fragment> with
import { React, useState, useEffect } from 'react'
at the top of my page I get
Uncaught TypeError: Cannot read properties of undefined (reading 'Fragment')
If I switch this to
import React, { useState, useEffect } from 'react'
it works just fine. Is this indicative of a problem somewhere else?
Upvotes: 3
Views: 740