New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-use-less

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-use-less

useLess is useless

latest
Source
npmnpm
Version
1.0.3
Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

use-less

useLess is an useless react hook

Usage

With Pre-processor

Install:

npm i react-use-less
# or use yarn
yarn add react-use-less

Import it!

import useLess from 'react-use-less';

const MyComponent = () => {
  useLess(); // 💁‍♂️
};

CDN

useLess can be used through CDN:

<!-- import react-use-less(choose one) -->
<script crossorigin src="https://cdn.jsdelivr.net/npm/react-use-less"></script>
<script
  crossorigin
  src="https://cdn.jsdelivr.net/npm/react-use-less/umd/use-less.min.js"
></script>
<script crossorigin src="https://unpkg.com/react-use-less"></script>
<script
  crossorigin
  src="https://unpkg.com/react-use-less/umd/use-less.min.js"
></script>

<!-- Also works for module -->
<script type="module">
  // choose one
  import useLess from 'https://cdn.jsdelivr.net/npm/react-use-less/esm/use-less.js';
  import useLess from 'https://unpkg.com/react-use-less/esm/use-less.js';
  // ...
</script>

License

MIT

Keywords

react

FAQs

Package last updated on 08 Jun 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts