Skip to content

kaali001/Chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

To run this application run the below commands :

1. First initialize the npm in this project, if it runs successfully . a new folder .node_modules will be added .

  npm init

2. Make sure your are in your project directory , where all the folders and files of project are present. If not run below command in cmd by - cd followed by project name without curly braces.

cd project_folder_name

3. Now run your project .

npm start

On successful run of your project you will get below message in terminal.

Screenshot (62)

4. If you are getting multiple duplicates response of chatbot after taking user input, like this

chbot

5. Then go to your index.js file .

and change this :

                        import ReactDOM from "react-dom/client";
                        ReactDOM.createRoot(document.getElementById('root')).render(
                            <React.StrictMode>
                                    <App />
                           </React.StrictMode>
                       )

to this :

                       import { render } from "react-dom";
                       render(<App />, document.getElementById("root"));

Thank you , Happy coding.......

About

chatbot using react-simple-chatbot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published