DEV Community

Discussion on: Three dots ( … ) in JavaScript

Collapse
 
hileon profile image
Leon

In a document of Gatsby, there is a line of code that ... followed by nothing. What does it mean here?

import React from "react"
import { graphql } from "gatsby"
export default function IndexPost( props ) {
  return (...)
}
export const query = graphql`
  fragment SiteInformation on Site {
    siteMetadata {
      title
      siteDescription
    }
  }
`
Collapse
 
sagar profile image
Sagar

maybe Gatsby trying to say there should JSX written by the user and this is not valid case.