Sfoglia il codice sorgente

add console.log to 2nd argment to show object

kaori 5 anni fa
parent
commit
5bca4f43a5
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 3 2
      src/client/js/components/CustomNavigation.jsx

+ 3 - 2
src/client/js/components/CustomNavigation.jsx

@@ -29,8 +29,9 @@ const CustomNavigation = (props) => {
   const navBar = document.getElementById('grw-custom-navbar');
   const navTabs = document.querySelectorAll('ul.grw-custom-navbar > li.grw-custom-navtab');
 
-  const stringifyRefs = JSON.stringify(refs);
-  console.log(`stringifyRefs : ${stringifyRefs}`);
+  JSON.stringify(refs);
+  // console.log(`stringifyRefs : ${stringifyRefs}`);
+  console.log('ref', refs);
 
   useEffect(() => {
     console.log(`useEffecet ${activeTab}`);