Eduzz NPS react component
npm install @eduzz/nps-react-solucxComponente React para realizar o NPS (Net Promoter Score) da Eduzz.
``bash`
npm install @eduzz/nps-react
`bash`
yarn add @eduzz/nps-react
`tsx
import Nps from '@eduzz/nps-react';
eduzzId='1'
accessKey='123456'
transactionId='1'
journey='nps_soft_launch_-_base_reduzida'
name='Nutror'
email='qa-nutror@eduzz.com'
/>
`
`ts
type Apps = 'eduzz' | 'sun' | 'alumy' | 'backoffice' | 'telescope' | 'jobzz' | 'orbita' | 'nutror' | 'blinket';
type SetupParams = {
app: Apps;
accessKey: string;
transactionId: string;
journey: string;
eduzzId: number;
name?: string;
email: string;
position?: 'bottomBar' | 'bottomBox' | 'bottomBoxLeft' | 'inline' | 'modal';
};
`
Para rodar o projeto localmente é bem simples:
`bash
// para instalar as dependências
yarn
// inicia o vite
yarn start
``