설치
패키지 매니저로 설치하기
npm install @wepin/pin-jsyarn add @wepin/pin-js// 1. 패키지 import
import { WepinPin } from '@wepin/pin-js'
// 2. 초기화
const wepinPin = new WepinPin({
appKey: 'your-wepin-app-key',
})const initWepinPin = async () => {
const { WepinPin } = await import('@wepin/pin-js');
const wepinPin = new WepinPin({
appKey: '',
});
await wepinPin.init();
}Last updated
Was this helpful?