Skip to content

Instantly share code, notes, and snippets.

View ashikrai's full-sized avatar

Ashik Rai ashikrai

View GitHub Profile
@ashikrai
ashikrai / App.js
Created July 27, 2021 04:59
App.js is the root container of a React App
// 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'])