DEV Community

prasanna1985samal
prasanna1985samal

Posted on

Help!!

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 (

   



     

     

 

  );

}

Top comments (0)