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}

+}