react-safe-anchor

0.1.0 • Public • Published

react-safe-anchor

A simple react component that renders a "safe" anchor. It is intended as a stop-gap for accessibility concerns. This is modified version of react-bootstrap SafeAnchor

Install

npm install react-safe-anchor --save

Usage

CommonJS:

var React = require('react');
var ReactDOM = require('react-dom');
var ReactSafeAnchor = require('react-safe-anchor');

ReactDOM.render(
  React.createElement(
    ReactSafeAnchor, {}, 
    '<strong>Well done!</strong> Click on this anchor and watch nothing happen!'),
  document.body
);

Readme

Keywords

Package Sidebar

Install

npm i react-safe-anchor

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • dennisduong