Skip to content

Commit

Permalink
updating readme
Browse files Browse the repository at this point in the history
  • Loading branch information
cozimacode committed Oct 30, 2020
1 parent 6b45ef1 commit bcf4451
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,12 @@ 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.
1- Import the ReactBot component and the stylesheet in your app and pass the mandatory `handleUserInput` prop that accepts a function to process the user input.

```js
import React from "react";
import { ReactBot } from "@cozimacode/react-bot";
import "@cozimacode/react-bot/dist/styles.css";

function Demo() {
const handleUserInput = (input) => {
Expand All @@ -59,6 +60,7 @@ export default Demo;
```js
import React from "react";
import { ReactBot, addBotMessage } from "@cozimacode/react-bot";
import "@cozimacode/react-bot/dist/styles.css";

function Demo() {
const handleUserInput = (input) => {
Expand All @@ -78,6 +80,7 @@ export default Demo;
```js
import React from 'react';
import { ReactBot } from '@cozimacode/react-bot';
import "@cozimacode/react-bot/dist/styles.css";
import launcherIcon from './launcherIcon.png';

function Demo() {
Expand Down Expand Up @@ -160,6 +163,7 @@ import {
hideTypingEffect,
addBotMessage,
} from "@cozimacode/react-bot";
import "@cozimacode/react-bot/dist/styles.css";

function Demo() {
const handleUserInput = (input) => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cozimacode/react-bot",
"version": "1.2.0",
"version": "1.2.1",
"description": "A clean, compact and responsive chat widget for React Apps.",
"author": {
"name": "Naser Mohd Baig",
Expand Down

0 comments on commit bcf4451

Please sign in to comment.