Created
June 28, 2019 16:41
-
-
Save FreddyPoly/a3ed1e7f8f419f728040e3b9bfc32dc0 to your computer and use it in GitHub Desktop.
[REACT NATIVE] Ramda Usage Example
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 { contains } from "ramda" | |
export class ComponentTest extends React.Component<Props, State> { | |
constructor(props: Props) { | |
super(props); | |
this.state = {} | |
} | |
_function = () => { | |
return contains('element2', ['element1', 'element2', 'element3']); | |
} | |
render() { | |
return ( | |
// JSX... | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment