Placeholder Fallback
The PlaceholderFallback
component allows you easily control when to show a placeholder and what to show as a fallback
in case your network request failed.
Features include:
- Customizable delayed wait time before showing a placeholder
- Customizable network timeout time
- Customizable fallback element
Basic Example
Here, we are using the prebuilt placeholders that this library provides for a super simple, basic example.
javascript interactive example
typescript interactive example
Provide Custom Placeholders Example
This example shows how you can provide your own custom placeholders using class or functional component syntax.
javascript interactive example
typescript interactive example