Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

is-react

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-react - npm Package Compare versions

Comparing version 0.1.12 to 0.1.13

4

package.json
{
"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!

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc