Comparing version 0.1.12 to 0.1.13
{ | ||
"name": "is-react", | ||
"version": "0.1.12", | ||
"description": "Determine if a variable or statement is a React element or component", | ||
"version": "0.1.13", | ||
"description": "Determine if a variable or expression is a React element or component", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
@@ -10,3 +10,3 @@ # Is React | ||
<p align="center"> | ||
Determine if a variable or statement is a valid element or component in <a href="https://facebook.github.io/react">React</a> | ||
Determine if a variable or expression is a valid element or component in <a href="https://facebook.github.io/react">React</a> | ||
</p> | ||
@@ -20,3 +20,3 @@ | ||
A library to determine if a variable or a statement is a React element or component. | ||
A library to determine if a variable or a expression is a React element or component. | ||
For a more thorough understanding, this [article](https://facebook.github.io/react/blog/2015/12/18/react-components-elements-and-instances.html) describes elements and components in React, and this [article](https://facebook.github.io/react/docs/jsx-in-depth.html) | ||
@@ -110,3 +110,3 @@ gives an understanding of the JSX syntax. | ||
Determine if a variable or statement is compatible with React. Valid React | ||
Determine if a variable or expression is compatible with React. Valid React | ||
components and elements return `true`. | ||
@@ -116,3 +116,3 @@ | ||
Determine if a variable or statement is a React element. Will return `true` | ||
Determine if a variable or expression is a React element. Will return `true` | ||
for both DOM type and Composite type components. | ||
@@ -122,3 +122,3 @@ | ||
Determine if a variable or statement is a React component. Will return `true` | ||
Determine if a variable or expression is a React component. Will return `true` | ||
for both functional and class components. | ||
@@ -128,15 +128,15 @@ | ||
Determine if a variable or statement is a React class component. | ||
Determine if a variable or expression is a React class component. | ||
#### `isReact.functionComponent()` | ||
Determine if a variable or statement is a React functional component. | ||
Determine if a variable or expression is a React functional component. | ||
#### `isReact.DOMTypeElement()` | ||
Determine if a variable or statement is a React DOM type element. | ||
Determine if a variable or expression is a React DOM type element. | ||
#### `isReact.compositeTypeElement()` | ||
Determine if a variable or statement is a React Composite type element. | ||
Determine if a variable or expression is a React Composite type element. | ||
@@ -143,0 +143,0 @@ ## Thanks! |
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
46087