Download react-query/examples/react/react-native/src/components/ErrorMessage.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 385 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/examples/react/react-native/src/components/ErrorMessage.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/examples/react/react-native/src/components/ErrorMessage.tsx
-
curl -L -o ErrorMessage.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/examples/react/react-native/src/components/ErrorMessage.tsx
385 Bytes
| import * as React from 'react' | |
| import { StyleSheet, Text, View } from 'react-native' | |
| type Props = { | |
| message: string | |
| } | |
| export function ErrorMessage({ message }: Props) { | |
| return ( | |
| <View style={styles.fill}> | |
| <Text>{message}</Text> | |
| </View> | |
| ) | |
| } | |
| const styles = StyleSheet.create({ | |
| fill: { | |
| flex: 1, | |
| justifyContent: 'center', | |
| alignItems: 'center', | |
| }, | |
| }) | |