Skip to content

Instantly share code, notes, and snippets.

@FreddyPoly
Created June 28, 2019 16:41
Show Gist options
  • Save FreddyPoly/a3ed1e7f8f419f728040e3b9bfc32dc0 to your computer and use it in GitHub Desktop.
Save FreddyPoly/a3ed1e7f8f419f728040e3b9bfc32dc0 to your computer and use it in GitHub Desktop.
[REACT NATIVE] Ramda Usage Example
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