tsmona
v1.6.0
Published
```JavaScript npm i tsmona ``` then in your react code, import the package and use as this
Downloads
17
Readme
By Vinciis
Monalisa is the flagship API by Vinciis for affliated advertising on web assets. for using, install the package by using
npm i tsmona
then in your react code, import the package and use as this
import {Monalisa} from 'tsmona';
and call the Monalisa component in a div of your react app
<div>
<Monalisa screen={screenId} monaName={monaName} />
</div>
for changing the size of the component, use a css class and call the api within it...
<div className="container">
<Monalisa screen={screenId} monaName={monaName}/>
</div>
Wordpress
copy the folder Monalisa to your wordpress website's plugin directory
example_website/app/public/wp-content/plugins/
then open the folder in vscode
cd example_website/app/public/wp-content/plugins/widget
now install dependencies and build the application in the "widget" folder
npm i && npm run build
go to you wordpress admin panel and click on "Plugins" tab in the sidebar to see the Monalisa plugin and click on activate
if all goes well,
go the the page you want to add the "Mona-Window", add shortcode from the add block option and type the following in the shortcode block input
[erw-monalisa]
for more details and for getting your screenId by contacting [email protected]