From 4e8267446f65b431a5aa10ffcfae74a83af1d109 Mon Sep 17 00:00:00 2001 From: Moises771 Date: Thu, 1 Jun 2023 13:59:30 +0200 Subject: [PATCH] added components --- src/App.jsx | 19 ++++--------------- src/components/Support.jsx | 11 +++++++++++ src/components/Welcome.jsx | 3 +++ 3 files changed, 18 insertions(+), 15 deletions(-) create mode 100644 src/components/Support.jsx create mode 100644 src/components/Welcome.jsx diff --git a/src/App.jsx b/src/App.jsx index 34964d71..352751f9 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,17 +1,7 @@ import React, { Component } from 'react'; +import Welcome from './components/Welcome'; +import Support from './components/Support'; -class Welcome extends React.Component { - constructor(props) { - super(props); - } - render() { - return

Meet the { this.props.name }

; - } -} - -const Hello = (props) => { - return

Meet the {props.name}

-} function App() { const name = 'StarGazers' @@ -20,11 +10,10 @@ function App() {
StarGazers Group - - +

Members of an intergalactic alliance
paving the way for peace and benevolence among all species. They are known for their enthusiasm for science, for their love of fun, and their dedication to education.

- +
diff --git a/src/components/Support.jsx b/src/components/Support.jsx new file mode 100644 index 00000000..549b2d5b --- /dev/null +++ b/src/components/Support.jsx @@ -0,0 +1,11 @@ +import { useState } from "react"; + +export default ()=>{ + const [count, setCount] = useState(0) + return( + + + ) +} \ No newline at end of file diff --git a/src/components/Welcome.jsx b/src/components/Welcome.jsx new file mode 100644 index 00000000..84a5b7a1 --- /dev/null +++ b/src/components/Welcome.jsx @@ -0,0 +1,3 @@ +export default (props) => { + return

Meet the {props.name}

+}