--- title: Sharing code --- In all the examples we've seen so far, the ` ``` It's now possible for the components to 'talk' to each other without any state management: ```js onMount(() => { currentPlayer = audio; return () => currentPlayer = null; }); function stopOthers() { if (currentPlayer !== audio) currentPlayer.pause(); currentPlayer = audio; } ```