mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-21 17:18:52 +00:00
12 lines
351 B
JavaScript
12 lines
351 B
JavaScript
import React from 'react';
|
|
import Character from './Character';
|
|
|
|
module.exports = (props) => {
|
|
const text = `${props.children}`;
|
|
const chars = text.split('');
|
|
return <div {...props}>
|
|
{chars.map((character, index) => <Character key={index + character}>{character}</Character>)};
|
|
</div>;
|
|
};
|
|
|
|
// TODO: Require that props.children be a string
|