webflow-react icon indicating copy to clipboard operation
webflow-react copied to clipboard

If components get restructured, controllers could be part of each component's folder

Open oalexdoda opened this issue 5 years ago • 1 comments

If issue #4 gets solved, each controller could go under each component's folder:

e.g.

components/
    header/
        controller.js
        index.js

Not sure if it's the best structure, but rather than storing them separately, this would also help with nested folders for issue #4

image

oalexdoda avatar Aug 28 '19 10:08 oalexdoda

When running the script, it could check whether the folder exists, and only add the component's index.js rather than overwriting the whole folder, therefore keeping the controller.js and any other files inside that component's folder.

oalexdoda avatar Aug 28 '19 11:08 oalexdoda