This package has been deprecated

Author message:

This package is deprecated. Please use reBEM: https://github.com/rebem/

@yummies/dom

2.0.2 • Public • Published

npm travis coverage deps dev deps

YummiesDOM reflects the same connection with Yummies as react@>=0.14 has with ReactDOM

Install

npm i -S @yummies/dom

API

Patched methods

The following ReactDOM API methods are patched to support the new format:

render()
import YummiesDOM from '@yummies/dom';

YummiesDOM.render({ block: 'my-component' }, document.body);
renderToString()
import YummiesDOMServer from '@yummies/dom/server';

YummiesDOMServer.renderToString({ block: 'my-component' });
renderToStaticMarkup()
import YummiesDOMServer from '@yummies/dom/server';

YummiesDOMServer.renderToStaticMarkup({ block: 'my-component' });

Babel environment

There are couple of things worth noticing if you use babel.

Since 1.x.x babel-runtime is not included anymore and we inline all helpers. We do it in case to support IE9-10. It may insignificantly increase bundle size, but other than that everything should work fine even if you use babel-runtime in your application.

If you need to support IE9-10, you should include on spec.protoToAssign into optional in your .babelrc. This will fix some inheritance incompatibility issues. If you don't need IE9-10, no additional moves required.

Old browsers support

Please note that IE8 is supported only in 0.x.x legacy branch. Starting from 1.x.x only IE9 and higher are supported. We are going to keep updating a legacy branch in parallel for some time (until IE8 would not become history).

Package Sidebar

Install

npm i @yummies/dom

Weekly Downloads

0

Version

2.0.2

License

MIT

Last publish

Collaborators

  • yummies