react-grid-system
Advanced tools
Comparing version 7.2.0 to 7.3.0
@@ -72,3 +72,5 @@ "use strict"; | ||
var _useState = (0, _react.useState)(getScreenClass()), | ||
var _useState = (0, _react.useState)(function () { | ||
return getScreenClass(); | ||
}), | ||
_useState2 = _slicedToArray(_useState, 2), | ||
@@ -75,0 +77,0 @@ screenClass = _useState2[0], |
@@ -67,3 +67,3 @@ declare module 'react-grid-system' { | ||
export function setConfiguration(configuration: Configuration): void | ||
export function useScreenClass(elementRef?: React.MutableRefObject<any>): string | ||
export function useScreenClass(elementRef?: React.MutableRefObject<any>): ScreenClass | ||
@@ -70,0 +70,0 @@ export class Col extends React.Component<ColProps, any> { } |
{ | ||
"name": "react-grid-system", | ||
"version": "7.2.0", | ||
"version": "7.3.0", | ||
"description": "A powerful Bootstrap-like responsive grid system for React.", | ||
@@ -5,0 +5,0 @@ "main": "./build/index.js", |
@@ -46,3 +46,3 @@ /* global window */ | ||
const [screenClass, setScreenClass] = useState(getScreenClass()); | ||
const [screenClass, setScreenClass] = useState(() => getScreenClass()); | ||
@@ -49,0 +49,0 @@ |
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
107102
2122