diff --git a/standalone/webapp/src/LibraryView.tsx b/standalone/webapp/src/LibraryView.tsx index 5e955c2..d295d55 100644 --- a/standalone/webapp/src/LibraryView.tsx +++ b/standalone/webapp/src/LibraryView.tsx @@ -6,14 +6,15 @@ export function LibraryView() { const containerRef = useRef(null) const apollon2Ref = useRef(null) + const onGetNodesButtonClick = () => { + // To show that the getNodes method works + if (apollon2Ref.current) { + console.log(apollon2Ref.current.getNodes()) + } + } useLayoutEffect(() => { if (containerRef.current) { apollon2Ref.current = new Apollon2(containerRef.current) - - console.log( - "Random number from Apollon2:", - apollon2Ref.current.getNodes() - ) } return () => { @@ -25,5 +26,15 @@ export function LibraryView() { } }, []) - return
+ return ( + <> + +
+ + ) }