Skip to content

Instantly share code, notes, and snippets.

Avatar

Ashik Rai ashikrai

View GitHub Profile
@ashikrai
ashikrai / App.js
Created Jul 27, 2021
App.js is the root container of a React App
View App.js
// FileName: App.js
import './App.css';
import React from 'react';
// importing components from another files
import { ListComponents } from "./ListComponent";
// imports related to DND
import { DragDropContext } from 'react-beautiful-dnd';
function App() {
// List 1 consisting of all MARVEL super heroes
const [list1, setList1] = React.useState(['Captain America', 'Iron Man', 'SpiderMan', 'Thor', 'Hulk', 'Black Widow', 'Loki', 'Black Panther', 'Deadpool', 'Doctor Strange', 'Ant Man', 'Captain Marvel'])