Boilerplate React project incorporating NextJS, CICD pipelines, unit testing, quality gates, and code styling. It is useful for ensuring consistent working environments across multiple different applications.
Other
10
stars
7
forks
source link
Simplify component import paths using aliasing #15
When importing components into pages, it gets very tedious to write deep relative paths.
If the page route changes (and therefore the location of the file) the relative paths all need to be updated, which is a lot of unnecessary work.
This can be solved with module-alias which provides a method of aliasing these for easier use: