Simple tool to merge multiple images into a tabbed view of them.
There is also a datawrapper-switcher to do the same for datawrapper embeds
To create a new switcher navigate to https://dj1.app.rbb-cloud.de/toggle-component
Example:
Your app lives in /src
.
Reusable modules should eventually be moved to src/shared
and be pushed back to Github. :)
(create react app forces all code to live under src
)
By default, Create React App produces a build assuming your app is hosted at the server root.
To override this, specify the homepage in your package.json
, for example:
"homepage": "https://dj1.app.rbb-cloud.de/toggle-component/",
This App can track "pageviews" and e.g. map interactions.
To enable this you need to replace everything in {}
in the ANALYTICS variables in the .env
file
and set REACT_APP_ANALYTICS_ENABLED
to true.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Analyze the bundle size you can also run npm run analyze-without-build
if you already have run
npm run build
before.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
https://create-react-app.dev/docs/available-scripts/#npm-run-eject