From 1613395b59f09815d3d62d8097a9f74c6e2c7cea Mon Sep 17 00:00:00 2001 From: Naser Date: Sun, 13 Sep 2020 01:06:14 +0530 Subject: [PATCH] adding UNPKG instructions --- README.md | 10 +++++++++- package.json | 3 +-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6ea715a..e3f382e 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,14 @@ npm install @cozimacode/react-bot yarn add @cozimacode/react-bot ``` +#### UNPKG + +```html + +``` + +You can access it via window.ReactBot + ## Usage 1- Import the ReactBot component in your app and pass the mandatory `handleUserInput` prop that accepts a function to process the user input. @@ -61,7 +69,7 @@ import { ReactBot, addBotMessage } from '@cozimacode/react-bot'; function Demo() { const handleUserInput = (input) => { if (input.indexOf("Hi") > -1) { - addBotMessage("Hi there!) + addBotMessage("Hi there!") } }; diff --git a/package.json b/package.json index c079638..7097d53 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cozimacode/react-bot", - "version": "1.0.0", + "version": "1.0.1", "description": "A clean, compact and responsive chat widget for React Apps.", "author": { "name": "Naser Mohd Baig", @@ -17,7 +17,6 @@ "scripts": { "build": "nwb build-react-component", "clean": "nwb clean-module && nwb clean-demo", - "prepublishOnly": "npm run build", "start": "nwb serve-react-demo" }, "dependencies": {