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
- Host: GitHub
- URL: https://github.com/gwendall/react-string
- Owner: gwendall
- License: mit
- Created: 2018-07-25T18:06:31.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-14T10:56:13.000Z (over 2 years ago)
- Last Synced: 2025-03-18T05:56:57.747Z (3 months ago)
- Language: JavaScript
- Size: 182 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.
);
```