DEV Community

Cover image for React cheat sheet
Abdi Abyan
Abdi Abyan

Posted on

React cheat sheet

export default function App() {
return (
<>

    </>

);
Enter fullscreen mode Exit fullscreen mode

}


function App() {
return (
<>

    </>

);

Enter fullscreen mode Exit fullscreen mode




}

export default App;

function List() {
const itemList = ["Mo Joe", "alhim" "Ahmeddill", "Sameria", "Hibaq"];

return (
itemList.map((item) => (

{item}


))
);
)

export defualt Class DropDownList extends Component {
render (
return


  • Home
  • About
  • Dashboard


);
}

import React from "react";
import NavBar from "./components/navbar.js";
import Footer from "./components/footer.js";
import Header from "./components/header.js";
import Home from "./home.js";
import { BrowserRouter as Router, Switch, Route, Link } from "react-router-dom";

function App() {
return (










);
}

export default App;

Top comments (0)