LearnNewsExamplesServices
Frontmatter
id1129
titleimporting component.Base => code shortening / cleanup
stateClosed
labels
enhancement
assigneestobiu
createdAtAug 24, 2020, 9:48 AM
updatedAtAug 24, 2020, 10:15 AM
githubUrlhttps://github.com/neomjs/neo/issues/1129
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtAug 24, 2020, 10:15 AM

importing component.Base => code shortening / cleanup

Closed v8.1.0 enhancement
tobiu
tobiu commented on Aug 24, 2020, 9:48 AM

using import {default as Component} most of the time, since the class name is Base.

however, Base is the default export (and the only one), so we can reduce this to import Component.

tobiu added the enhancement label on Aug 24, 2020, 9:48 AM
tobiu assigned to @tobiu on Aug 24, 2020, 9:48 AM
tobiu referenced in commit 7db3047 - "importing component.Base => code shortening / cleanup #1129" on Aug 24, 2020, 10:01 AM
tobiu referenced in commit 6ced32e - "#1129 apps folder" on Aug 24, 2020, 10:13 AM
tobiu referenced in commit bfe32b8 - "#1129 docs app" on Aug 24, 2020, 10:15 AM
tobiu closed this issue on Aug 24, 2020, 10:15 AM
tobiu cross-referenced by #1130 on Aug 24, 2020, 10:16 AM