Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 1.54 KB

CHANGELOG.md

File metadata and controls

41 lines (27 loc) · 1.54 KB

2.1.2

We are now jsx-standalone - to continue the minimal approaches of jsx-no-react in the past. The previous repo has been archived and abandoned - so this is the new ongoing support.

2.0.0

Breaking changes introduced with rendering modes - renderAndReplace is now called render to follow common practice with SPA frameworks rendering mechanisms. Additionally, the render locations below are more explicit on where they will place the JSX output. Finally, prepend and append now support top-level JSX fragments (before and after render locations require a top-level container element still).

New methods:

renderBefore(<Hello name="world" />, targetElement);
renderPrepend(<Hello name="world" />, targetElement);
render(<Hello name="world" />, targetElement);
renderAppend(<Hello name="world" />, targetElement);
renderAfter(<Hello name="world" />, targetElement);

1.1.1

Sadly the previous release had old code in it, this release fixes it.

1.1.0

  • Add beforeEnd and afterEnd render options thanks to theodugautier

1.0.0

  • Added Fragment support thanks to f107

This release needs extra care in the babel configuration to make Fragments work. You need to replace babel-plugin-transform-react-jsx with @babel/preset-react. Please check the README for details.

0.5.0

  • Added Object.entries Polyfill
  • Changed distribution to include iife and es6 versions

0.4.0

  • Added support for the svg tag