c8bdb33e65
This should be equivalent to the previous, just that the promises are stored in an object rather than variable. Benefits: - Allows a single "prettier-ignore" to bypass the multiline import. - Slightly less work when adding new modals by not having to create a named variable and handle the switch-case. The webpack lazy-load syntax is unfortunately verbose, so this is the best I can come up with for now. |
||
---|---|---|
.. | ||
index.js | ||
view.jsx |