UNPKG

@line/create-liff-app

Version:

Start developing LIFF application with a simple CLI command.

32 lines (29 loc) 700 B
"use client"; import { useLIFF } from "../providers/liff-providers"; import styles from "./page.module.css"; export default function Home() { const { liff, liffError } = useLIFF(); return ( <div> <main className={styles.main}> <h1>create-liff-app</h1> {liff && <p>LIFF init succeeded.</p>} {liffError && ( <> <p>LIFF init failed.</p> <p> <code>{liffError}</code> </p> </> )} <a href="https://developers.line.biz/ja/docs/liff/" target="_blank" rel="noreferrer" > LIFF Documentation </a> </main> </div> ); }