group-sub
v1.0.0
Published
Quick subbing util for non-string insertions
Readme
group-sub
Quick subbing util for 'complex' non-string substitutions in strings.
Eg:
import { groupSub } from 'group-sub';
// Or if you use require:
// const { groupSub } = require('group-sub');
groupSub('abc def abc def ghi abc', { def: <Button />, ghi: 'something' });
// ['abc ', <Button />, ' abc ', <Button />, ' ', 'something', ' abc'];