react-delay-fallback
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -6,3 +6,3 @@ import { FC, ReactNode } from 'react'; | ||
/** Component to render instead of children while waiting.*/ | ||
fallback?: JSX.Element; | ||
fallback?: ReactNode; | ||
/** Function to trigger on render. */ | ||
@@ -9,0 +9,0 @@ onRender?: (...args: Array<unknown>) => unknown; |
@@ -49,3 +49,3 @@ "use strict"; | ||
timeout: prop_types_1.default.number, | ||
fallback: prop_types_1.default.element, | ||
fallback: prop_types_1.default.node, | ||
onRender: prop_types_1.default.func, | ||
@@ -52,0 +52,0 @@ children: prop_types_1.default.node.isRequired, |
@@ -6,3 +6,3 @@ import { FC, ReactNode } from 'react'; | ||
/** Component to render instead of children while waiting.*/ | ||
fallback?: JSX.Element; | ||
fallback?: ReactNode; | ||
/** Function to trigger on render. */ | ||
@@ -9,0 +9,0 @@ onRender?: (...args: Array<unknown>) => unknown; |
@@ -24,3 +24,3 @@ import React, { useState, useEffect } from 'react'; | ||
timeout: PropTypes.number, | ||
fallback: PropTypes.element, | ||
fallback: PropTypes.node, | ||
onRender: PropTypes.func, | ||
@@ -27,0 +27,0 @@ children: PropTypes.node.isRequired, |
{ | ||
"name": "react-delay-fallback", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "React component to delay children rendering", | ||
"keywords": [], | ||
"keywords": [ | ||
"react", | ||
"delay", | ||
"fallback", | ||
"wait", | ||
"render", | ||
"suspend", | ||
"defer" | ||
], | ||
"author": { | ||
@@ -7,0 +15,0 @@ "name": "Jonathan Mataloni", |
@@ -1,3 +0,7 @@ | ||
# react-library-boilerplate | ||
# react-delay-fallback | ||
![version](https://img.shields.io/npm/v/react-delay-fallback) | ||
![size](https://img.shields.io/bundlephobia/min/react-delay-fallback) | ||
![download](https://img.shields.io/npm/dm/react-delay-fallback) | ||
React component to delay children rendering and show a fallback component while waiting | ||
@@ -14,3 +18,3 @@ | ||
Compatible with React >=16.8.0\ | ||
Compatible with Node >=8.0.0\ | ||
Compatible with Node >=8.0.0 | ||
@@ -23,3 +27,3 @@ ## Feature | ||
- Runtime type checking with prop-types and static with typescript declaration files | ||
- Exaustive doc comments | ||
- Exhaustive doc comments | ||
- Tree shakable: exported with ESM modules | ||
@@ -53,3 +57,3 @@ - Tested with available coverage report | ||
```jsx | ||
import { Delay } from 'react-delay-fallback; | ||
import { Delay } from 'react-delay-fallback'; | ||
@@ -56,0 +60,0 @@ function App() { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10109
83