title: Svelte - How Component one can use functions from Component two?
body: <p>How can CompOne run the function "test" in CompTwo?</p>
  
  <p><strong>CompOne.svelte</strong></p>
  
  <pre><code>&lt;script&gt;
     import {test} from './CompTwo.svelte'
  &lt;/script&gt;
  &lt;!-- Some style and HTML tags for this component --&gt;
  </code></pre>
  
  <p><strong>CompTwo.svelte</strong></p>
  
  <pre><code>&lt;script&gt;
     export const test = () =&gt; { console.log('testing function') }
  &lt;/script&gt;
  &lt;!-- Some style and HTML tags for this component --&gt;
  </code></pre>