React - defaultProps

0 votes
178 views
added May 14, 2019 in React by LC Marshal Captain (25,790 points)
Sidebar.defaultProps = {
  isOpen: false,
  isLogin: false,
  closeSidebar: null,
  handleLogout: null,
};

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...