Frequently Asked Questions
Find answers to commonly asked questions about using the react-maintenance package.
Troubleshooting
Maintenance screen doesn't show up
- Verify that
REACT_APP_PRODUCTION
is set totrue
in.env
file - If using
startTime
andendTime
, check that the current time is within that window - Ensure the component is correctly imported and rendered at the top level of your application
Custom styles aren't applied correctly
- Check that your
customStyles
object has the correct structure - Make sure you're not using CSS properties that require vendor prefixes
- For complex styling, consider using a
CustomComponent
instead
Issues with countdown timer
- Ensure
endTime
is a valid date string or Date object - Verify that
showCountdown
is set totrue
- Check that the end time is in the future
Still Need Help?
If you couldn't find an answer to your question, try these resources:
- GitHub Issues - Check existing issues or create a new one
- GitHub Repository - Review the source code or contribute
- NPM Package Page - For the latest version information