Skip to content

Instantly share code, notes, and snippets.

@YonatanKra
Last active December 28, 2017 09:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YonatanKra/861072e41acebf0bd3d08ee0a6a3779d to your computer and use it in GitHub Desktop.
Save YonatanKra/861072e41acebf0bd3d08ee0a6a3779d to your computer and use it in GitHub Desktop.
simple form index
// get the template
import template from './form.index.html';
// get the styles
import {} from './form.index.css';
class YOPFForm{
constructor(element) {
this._element = element;
this.setTemplate();
}
setTemplate() {
this._element.innerHTML = template;
}
}
export default YOPFForm;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment