79323771

Date: 2025-01-02 12:58:05
Score: 0.5
Natty:
Report link

can't you change

 {
        path: "journalentry",
        element: <JournalEntry onSave={Storage}/>
    },

to

{
    path: "journalentry",
    element: <Storage/>  // Render Storage component directly
}

because inside Storage Component, JournalEntry is rendered.

According to your code,

Storage is the parent component and it manage state and also has the save method. JournalEntry is a child component inside it

Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): can't you
  • Low reputation (0.5):
Posted by: Jayampathi Weerasinghe