react-element-to-jsx-string
Advanced tools
Changelog
14.0.0 (2018-05-25)
browser: This PR change of the internal directory structure of the exported code. The previous code has move from the dist/
into the dist/esm
directory (but remender that we do not avice you to do use internals code 🤓)
fix(bunble): do not bundle peer dependencies
qa(ci): Avoid duplicate runs of checks on CI
qa(dependencies): Upgrade to latest rollup versions
qa(test): Allow to run the smoke tests aggaint all builded versions
<a name="13.2.0"></a>
Changelog
Changelog
13.0.0 (2017-10-09)
react-element-to-jsx-string
failed to respect the JSX specs for the trailing space. Event is the space were in the final output. There were silentrly ignored by JSX parser. This commit fix this bug by protecting the trailing space in the output.If we take the JSX:
<div>
foo <strong>bar</strong> baz
</div>
Before it was converted to (the trailing space are replace by *
for the readability):
<div>
foo*
<strong>
bar
</strong>
*baz
</div>
Now there are preserved:
<div>
foo{' '}
<strong>
bar
</strong>
{' '}baz
</div>
<a name="12.0.0"></a>
Changelog
12.0.0 (2017-08-03)
{
,}
,<
,>
)Before:
console.log(reactElementToJsxString(<div>{`Mustache :{`}</div>);
// <div>Mustache :{</div>
Now:
console.log(reactElementToJsxString(<div>{`Mustache :{`}</div>);
// <div>{`Mustache :{`}</div>
<a name="11.0.1"></a>
Changelog
11.0.0 (2017-07-20)
mversion
package in dev dependencies (0f82ee7)Date
type: <div foo={new Date("2017-01-01T11:00:00.000Z")} />
{}
) in a children string: <script type="application/json+ld">{ hello: 'world' }</script>
<a name="10.1.0"></a>