This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState, useEffect } from "react"; | |
import Item from "../Navbar/Item"; | |
export default function List() { | |
const [items, setItems] = useState({}); | |
useEffect(() => { | |
fetchData(); | |
}, []); | |
async function fetchData() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Sum extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
firstValue: "", | |
secondValue: "", | |
sumVar: "", | |
}; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
class Carousel extends React.Component { | |
render() { | |
return ( | |
<> | |
<h1>{this.props.product}</h1> | |
</> | |
); | |
} |