Skip to content

Commit

Permalink
fix: Add back /tags entry point
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Krems committed Oct 10, 2018
1 parent 4fb935d commit bab683e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ you can also use a set of named tag function helpers for terser syntax.

```js
// h() is passed through as an export so you don't need to require preact
const { h, span, div } = require('phy/preact/tags');
const { h, span, div } = require('phy/tags');

module.exports = function SomeComponent() {
return div('#foo', [span(['kittens']), h(SomeOtherComponent)]);
Expand Down
3 changes: 3 additions & 0 deletions tags.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict';

module.exports = require('./lib/tags');
2 changes: 1 addition & 1 deletion test/tags.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const assert = require('assertive');
const render = require('preact-render-to-string');

const cjsTags = require('../lib/tags');
const cjsTags = require('../tags');

const cjsH = cjsTags.h;
const p = cjsTags.p;
Expand Down

0 comments on commit bab683e

Please sign in to comment.