Closed noobling closed 5 years ago
Why can't we create a react component and let the CLCs embed the java script file wherever they would like?
I’m sure we can. That’s exactly why I am asking if React has a similar ability because I’m assuming it would.
So react and vue are the same thing at runtime its just JavaScript so yes you can inject both. Here is an example chatbot and how they inject javascript https://gethelp.drift.com/hc/en-us/articles/360019349154-Install-Drift-on-Your-Website-Using-the-Javascript-Snippet
Yeh something like that is exactly what I had in mind. Just ask them to include a JS link on the page they want it and we should be fine. CSS can be embedded in the JS in theory as well. Mark this as closed or still need more info?
I wouldn't because we don't have exact steps to do it and we haven't tested it yet.
A more basic version of what they did above is like this: https://reactjs.org/docs/add-react-to-a-website.html So if we use React we can put the chatbot in a component, Vue is similar as well
Yes
On Fri, Jun 28, 2019, 5:59 PM Thai Nguyen notifications@github.com wrote:
A more basic version of what they did above is like this: https://reactjs.org/docs/add-react-to-a-website.html So if we use React we can put the chatbot in a component, Vue is similar as well
— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/codersforcauses/LAWRA/issues/1?email_source=notifications&email_token=AFRBXUENFHF4NN54OOTHQMLP4XOGVA5CNFSM4H25TB2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYZUYXA#issuecomment-506678364, or mute the thread https://github.com/notifications/unsubscribe-auth/AFRBXUAWFVJ3D42KTZVQVV3P4XOGVANCNFSM4H25TB2A .
Obvious (but poor) answer is an iframe. Vue makes it pretty simple to have their dev (or us if given access) to just add an element and script where we want the chatbot to appear. Does react allow this kind of setup as well if we go that way?