How do I resolve this error, Should not import the named export 'destinations' (imported as 'destinations') from default-exporting module (only default export is available soon) Here the code snippet
import React from 'react'
import { useState } from 'react'
import {destinations} from '../assets/space-tourism-website-main/starter-code/data.json'
const Destinations = () => {
const [planets] = useState(destinations)
console.log(planets)
return (
<div>
</div>
)
}
export default Destinations