Skip to content

Instantly share code, notes, and snippets.

@mainfraame
Last active November 2, 2020 16:24
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 mainfraame/ce01deec46f9b7ec0f0d2e86cfcbdc0c to your computer and use it in GitHub Desktop.
Save mainfraame/ce01deec46f9b7ec0f0d2e86cfcbdc0c to your computer and use it in GitHub Desktop.
import Element from './path/to/Element'
// imagine this element <input type="text" data-test-id="foo"/>
const $element = new Element({
id: 'foo'
});
$element.setValue('bar');
$element.getValue(); // bar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment