Skip to content
This repository was archived by the owner on Dec 16, 2021. It is now read-only.

Commit c6d5659

Browse files
freemandevelopit
authored andcommitted
implement react-dom-factories (#456)
1 parent 1f0e508 commit c6d5659

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

lib/react-dom-factories.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require('preact-compat').DOM;

test/lib/react-dom-factories.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import DOM from '../../lib/react-dom-factories';
2+
3+
describe('react-dom-factories', () => {
4+
it('should export .div', () => {
5+
expect(DOM).to.have.property('div').that.is.a.function;
6+
});
7+
});

0 commit comments

Comments
 (0)