2.0.2 • Published 8 years ago

@yummies/dom v2.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
8 years ago

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).

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.0.0

8 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago