1.0.0 • Published 6 years ago

babel-plugin-jsx-target-blank v1.0.0

Weekly downloads
25
License
MIT
Repository
github
Last release
6 years ago

babel-plugin-jsx-target-blank

Build Status tested with jest styled with prettier All Contributors

for extarnal link

Install

npm:

$ npm install --save-dev babel-plugin-jsx-target-blank

yarn:

$ yarn add --dev babel-plugin-jsx-target-blank

Usage

.babelrc

{
  "plugins": ["jsx-target-blank"]
}

Examples

<a href="akameco.github.io" target="_blank">akameco</a>

      ↓ ↓ ↓ ↓ ↓ ↓

<a href="akameco.github.io" target="_blank" rel="noopener noreferrer">akameco</a>

with other tags

<a href="akameco.github.io" target="_blank" rel="noopener prefetch">
  akameco
</a>

      ↓ ↓ ↓ ↓ ↓ ↓

<a href="akameco.github.io" target="_blank" rel="noopener prefetch noreferrer">
  akameco
</a>

with extarnal link

<a href={extarnalLink} target="_blank">akameco</a>

      ↓ ↓ ↓ ↓ ↓ ↓

<a href={extarnalLink} target="_blank" rel="noopener noreferrer">akameco</a>

Contributors

Thanks goes to these wonderful people (emoji key):

akameco💻 📖 ⚠️ 🚇

This project follows the all-contributors specification. Contributions of any kind welcome!

License

MIT © akameco