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

react-use-hyphen

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-use-hyphen

Use hyphenated lib with React hooks

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

react-use-hyphen

npm install react-use-hyphen

How to use it

Using the component:

import React from 'react';
import ReactDOM from 'react-dom';
import useHyphen from 'react-use-hyphen';

import './styles.css';

function App() {
  const { Hyphen } = useHyphen();

  return (
    <div className="App">
      <div>
        <Hyphen>
          It real sent your at. Amounted all shy set why followed declared.
          Repeated of endeavor mr position kindness offering ignorant so up.
          Simplicity are melancholy preference considered saw companions.
        </Hyphen>
      </div>
    </div>
  );
}

const rootElement = document.getElementById('root');
ReactDOM.render(<App />, rootElement);

Using the hyphenated function:

import React from 'react';
import ReactDOM from 'react-dom';
import useHyphen from 'react-use-hyphen';

import './styles.css';

function App() {
  const { h } = useHyphen();

  return (
    <div className="App">
      <div>
        {h('It real sent your at. Amounted all shy set why followed declared.')}
      </div>
    </div>
  );
}

const rootElement = document.getElementById('root');
ReactDOM.render(<App />, rootElement);

Keywords

hyphenate

FAQs

Package last updated on 16 Sep 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