
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-highlight-hashtags
Advanced tools
react-highlight-hashtags is component for React to check hashtags in text.
Using npm:
$ npm install --save react-highlight-hashtags
Then, use as you would anything else:
// using ES modules
import Hashtags from 'react-highlight-hashtags';
Render a <Hashtags> component with ot without a text prop whose value is a valid text. The children prop should be a text.
import React from 'react';
import Hashtags from 'react-highlight-hashtags';
class App extends React.Component {
render() {
return (
<Hashtags> Hi, #highlight #hash tags</Hashtags>
);
}
}
import React from 'react';
import Hashtags from 'react-highlight-hashtags';
class App extends React.Component {
render() {
return (
<Hashtags text="Hi, #highlight #hash tags" />
);
}
}
There is only one optional props.
| prop | description | example |
|---|---|---|
| text | any text with or without #hashtags. | <Hashtags text="Hi, #highlight #hash tags" /> |
| children | any text with or without #hashtags. | <Hashtags> Hi, #highlight #hash tags</Hashtags> |
If you are using bootstrap then mark tag will appear in yellow background.
mark {
background:none;
color:rgb(250, 93, 58);
cursor:pointer;
}
react-highlight-hashtags is developed and maintained by Krishna Kumar.
FAQs
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.