mirror of
https://github.com/captbaritone/webamp.git
synced 2026-01-23 18:25:30 +00:00
14 lines
377 B
JavaScript
14 lines
377 B
JavaScript
import React from 'react';
|
|
import Character from './Character.jsx';
|
|
|
|
module.exports = (props) => {
|
|
const text = '' + props.children;
|
|
const chars = text.split('');
|
|
return <div {...props}>
|
|
{chars.map((character, index) => {
|
|
return <Character key={index + character}>{character}</Character>;
|
|
})};
|
|
</div>;
|
|
};
|
|
|
|
// TODO: Require that props.children be a string
|