Create a query with the GQL Syntax helper
We'll using one of the most popular - gq. Here's how to install it - remember to do this in the root of your test
projects directory (legalesign-example
if you're following the titles suggested.)
Create your first Node API call
Create a file at legalesign-example\invite.js
:
legalesign-example\invite.js
import gq from 'gq';
export default function MyReactPage() {
return (
<Layout>
<h1>My React page</h1>
<p>This is a React page</p>
</Layout>
);
}