Package Exports
- happytalk-sdk-loader
- happytalk-sdk-loader/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (happytalk-sdk-loader) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Welcome to happytalk-sdk-loader 👋
모던 웹 프레임워크를 위한 비공식 (Unofficial) 해피톡 채팅 SDK 로더
설치
# npm이나 yarn도 사용 가능
pnpm add happytalk-sdk-loader
사용 예시 (React)
// components/Happytalk.tsx
'use client';
import {useEffect} from 'react';
import * as HappytalkService from 'happytalk-sdk-loader';
export default function Happytalk() {
useEffect(() => {
HappytalkService.boot({
siteId: '',
siteName: '',
categoryId: '',
divisionId: '',
dynamicScript: true,
});
}, []);
return null;
}
// Happytalk 컴포넌트를 layout.tsx (Next.js) / main.tsx (React) 에서 렌더
주의 사항
- 이 라이브러리는 클라이언트 측에서만 이용할 수 있습니다. SSR 등에서는 이용이 불가능 합니다. ("use client" 등 이용 필요)
개발자
👤 Minsu Kim
- Github: @kms0219kms
- Email: me@devayaan.me
API 문서
- 해피톡 공식 문서: https://design.happytalkio.com/docs/basic
- TypeDoc Reference: https://kms0219kms.github.io/happytalk-sdk-loader
라이센스
This project is Apache--2.0 licensed.
This README was generated with ❤️ by readme-md-generator