Skip to content

sourbh-doceree/reactjs-slot-integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

To start the project use command

npm start

in this demo we have provided 3 ways how you can add an doceree slot in react app

way 1

Paste the slot HTML directly in the index.html file of your react project. as we did in this project to integrate the slot with dimension 300x250

way 2

For adding script as the part of component, you can use the componentDidMount() lifecycle of React. using the document object of browser. for code snippet you can refer to file scriptTag.js in src folder.

way 3

You can use the npm 'Helmet' for rendering the script in react component in more easier and readable way. for code snippet you can refer to file scriptTag2.js in src folder.

About

code snippet for slot integration in reactjs project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published