import { init, getForm } from 'entree-ui-core';
init({ token: 'my-api-token' });
const form = await getForm('my-form-slug');
// get the form's name
const name = form.attributes.name;
// get a collection of questions
const collection = form.attributes.questions;
// get the first group
const { group, items } = collection[0];
If there are no groups, only one entry will be returned. The group of this entry is 'default'.