importReactfrom"react";importscormHookfrom"@thewillhuang/scorm-hook";constLMS=()=>{const[state,setState]=scormHook({state: {},setState: ()=>{},config: {},});// starting state as state, config is an object with methods matching SCORM2004 standards methods visit https://scorm.com/scorm-explained/technical-scorm/run-time/ for more detailsconsole.log({ state });useEffect(()=>{uploadToServer(state);},[state]);return(<div><buttononCLick={()=>{window.open(url);}}>{"open course"}</button></div>);};