Implementing iubenda on React JS website/app
Upvote this discussion if you would like us to add an integration guide specifically tailored for React web framework.
Upvote this discussion if you would like us to add an integration guide specifically tailored for React web framework.
This would be very helpful. One specific challenge I have at present is displaying embedded policies. The script to render the policy appears only to trigger upon loading, which makes it necessary to unload/reload the script, or to load it multiple times.
When using a 'DRY' component to render policies, this is slightly tricky to achieve. It's an edge case, for sure, but I have (as iubenda recommends) separate policies for mobile apps vs web app vs website, it's possible for a site visitor to view a mobile policy, then the web site policy in succession. I haven't found an elegant way to re-render the policy when the policyId changes.