Created
November 15, 2017 15:41
-
-
Save bigandy/ec347e9a1f699f3a474fac8f559cff52 to your computer and use it in GitHub Desktop.
LF SimpleForm React Component
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
class SimpleForm extends Component { | |
componentDidMount() { | |
if (document.getElementById('lf-load-scripts') === null) { | |
var s = document.createElement('script'); | |
s.id = 'lf-load-scripts'; | |
s.type = 'text/javascript'; | |
s.src = | |
'https://d2erq0e4xljvr7.cloudfront.net/assets/js/leadformly-embed_advance.min.js'; | |
document.body.appendChild(s); | |
} | |
} | |
render() { | |
return ( | |
<div | |
id="lfc5a003410e3868" | |
className="lf-container" | |
lf-include-html="https://s3.amazonaws.com/leadformlyimages/form/43668.html" | |
data-token="1YtSyI37K7C36YSfWDrQcC4gtRTXUPsKfIBRcZb2+43668" | |
data-embed-type="simple" | |
lf-elements="2,10,-1" | |
/> | |
); | |
} | |
} | |
export default SimpleForm; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment