Rename JSX to JS.
This commit is contained in:
10
components/error-display/error-display.component.js
Normal file
10
components/error-display/error-display.component.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import React from "react";
|
||||
import { View, Text } from "react-native";
|
||||
|
||||
export default function ErrorDisplay({ errorMessage }) {
|
||||
return (
|
||||
<View style={{ backgroundColor: "red" }}>
|
||||
<Text>{errorMessage}</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user