jsx-to-string icon indicating copy to clipboard operation
jsx-to-string copied to clipboard

After updating to 1.2.0 not possible to stringify array

Open johanboon opened this issue 7 years ago • 0 comments

Hi,

I'm trying to convert a div with an array inside it but it removes the array completely from the output. With version 1.1.0 it worked fine but after the update 1.2.0 it breaks.

Here is a test which fails with 1.2.0:

it('jsx-to-str with array input', () => { const inputArray = ['input1', 'input2']; const output = JsxToString( <div>{inputArray}</div>, );

expect(output).toContain('input1');
expect(output).toContain('input2');

});

regards, Johan

johanboon avatar Dec 06 '17 12:12 johanboon