Created
September 8, 2020 16:42
-
-
Save perjo927/df7689176ef2556ee34a1d9803be983d to your computer and use it in GitHub Desktop.
View Logic
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
export const getAndResetInput = (e) => { | |
const [input] = e.target; | |
const { value } = input; | |
input.value = ""; | |
return value; | |
}; | |
export const maybeRender = (template, validator) => | |
validator ? template : null; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment