Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
== This PR adds a feature that will never be officially supported ==
This PR enables you to replace every single file in the root
src
folder with your own implementation!For example, if you want to customize the Pokestop marker:
src/components/markers/pokestop.jsx
src/components/markers/pokestop.custom.jsx
F.A.Q.
Q. But Turtle, why would I want to write a custom component instead of relying on the config?
Q. What do you mean this will never be officially supported?
Q. How can you rudely break my custom component if it's git friendly?
Q. What files can I edit?
.css
,.js
, or.jsx
file in the rootsrc
folder. This PR does not apply to files in theserver
orpublic
folders.Q. How does this inject custom code while maintaining git friendly-ness??
.custom.[js,jsx,css]
ending are git ignored. The compiler checks if a custom file exists during the loading process, if it does, it replaces the contents of the standard file with the custom. Maintaining the original in the file structure while loading your custom file into the end bundle. Magic.In Closing: