0

Trying to reorganize folder structure as all components are currently under 1 lwc folder. Came across this post LWC Folder Structure

It answers the first problem of overcrowding unrelated components in 1 folder. But is it possible to import lwc components from other lwc folders? I didn't see anything in the OP docs about this.

To be clear, I'm talking about entire components with html, css, js and xml - not just utility functions.

Thank you

6
  • 2
    This is should answer your question Importing ES6 module in LWC
    – Klecool
    Commented Jun 8, 2020 at 18:24
  • @Klecool I'm not looking to import utility functions, I'm looking to important entire components (each with their own child components) much like is standard in React.js or other modern JS frameworks.
    – T. Young
    Commented Jun 8, 2020 at 18:54
  • @sfdcfox no sir, see above comment
    – T. Young
    Commented Jun 8, 2020 at 18:55
  • Okay, so what are you trying to do with this import?
    – sfdcfox
    Commented Jun 8, 2020 at 18:59
  • @sfdcfox Render the component.
    – T. Young
    Commented Jun 8, 2020 at 19:09

0

Browse other questions tagged .