<commit_before># preact-svg

[![NPM](http://img.shields.io/npm/v/preact-svg.svg)](https://www.npmjs.com/package/preact-svg)
[![travis-ci](https://travis-ci.org/developit/preact-svg.svg?branch=master)](https://travis-ci.org/developit/preact-svg)

An `<SVG>` wrapper component that makes inline `<svg>` work in [Preact].

> **[CodePen Demo](http://codepen.io/developit/pen/ZbPdem?editors=001)**
>
> ![preact-svg](https://i.gyazo.com/df0bcc29e36ee107352600679e537176.gif)

---


### Usage Example

```js
import SVG from 'preact-svg';
import { h, render } from 'preact';
/** @jsx h */
<commit_msg>Add deprecation notice<commit_after>> **Notice:** `preact-svg` is deprecated and obsolete.
>
> As of Preact 5.x, SVG is now supported right out of the box, so there is no need for `preact-svg`.


# preact-svg

[![NPM](http://img.shields.io/npm/v/preact-svg.svg)](https://www.npmjs.com/package/preact-svg)
[![travis-ci](https://travis-ci.org/developit/preact-svg.svg?branch=master)](https://travis-ci.org/developit/preact-svg)

This library provides an `<SVG>` wrapper component that makes inline `<svg>` work in [Preact] version 4 and prior.

> **[CodePen Demo](http://codepen.io/developit/pen/ZbPdem?editors=001)**
>
> ![preact-svg](https://i.gyazo.com/df0bcc29e36ee107352600679e537176.gif)

---


### Usage Example

```js
import SVG from 'preact-svg';
import { h, render } from 'preact';
/** @jsx h */

{'fraction_non_alphanumeric': 0.19971367215461705, 'fraction_numerical': 0.03865425912670007, 'mean_word_length': 4.637096774193548, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 16, 'https://': 8, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4680748', 'n_tokens_mistral': 604, 'n_tokens_neox': 546, 'n_words': 99}