init
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
import React from "react"
|
||||
|
||||
const IndexPage = ({data}) => {
|
||||
return (
|
||||
<div>
|
||||
<b>Titre : </b>
|
||||
{data.truc.title}
|
||||
<br></br>
|
||||
<b>Nombre de pages : </b>
|
||||
{data.truc.pages}
|
||||
<br></br>
|
||||
<b>Doc Id : </b>
|
||||
{data.truc.docid}
|
||||
</div>
|
||||
)}
|
||||
|
||||
|
||||
export const query = graphql`
|
||||
query MyQuery {
|
||||
truc {
|
||||
id
|
||||
title
|
||||
pages
|
||||
docid
|
||||
}
|
||||
}
|
||||
`
|
||||
|
||||
|
||||
export default IndexPage
|
||||
Reference in New Issue
Block a user