Last active
November 2, 2020 16:24
-
-
Save mainfraame/ce01deec46f9b7ec0f0d2e86cfcbdc0c to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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