An open API service indexing awesome lists of open source software.

https://github.com/gwendall/react-string

Render each character of a string separately
https://github.com/gwendall/react-string

Last synced: 2 months ago
JSON representation

Render each character of a string separately

Awesome Lists containing this project

README

        

# React String

React String allows you to render each character of a string separately.

See it in action [here](https://www.theatelier.tech).

# Installation

```shell
npm install react-string
```

or

```shell
yarn add react-string
```

# How it works

In this example, the characters of a string will be rendered alternatively blue and red.

```javascript
import React from 'react';
import String from 'react-string';

export default () => (
(
{character}
)}
>
Hello world.

);
```