DEV Community

Discussion on: GitHub draft PRs are here!

Collapse
 
prasanna1985samal profile image
prasanna1985samal

app.js
import React, { useState } from 'react';
import './App.css';
import "bootstrap/dist/css/bootstrap.min.css";
import AddNote from './components/addNote';
import NoteCard from './components/noteCard';

function App() {

  const [noteCount, setNoteCount] = useState(localStorage.getItem('noteObjCount') || 0);

  const addNote = () => {

    setNoteCount(parseInt(noteCount)+1);

  };

  const deleteNote = (count) => {

    setNoteCount(count);

  };

  return (

   



     

     

 

  );

}