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

Commit 70def86

Browse files
committed
removed jsx
1 parent c0c3a29 commit 70def86

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ module.exports = (basepath) => {
1616
const {value: NextProxy, next} = nextProxy
1717
const {fixture: {url = '/'}} = rest
1818

19-
return <ServerLocation url={addBasepath(url)}>
20-
<NextProxy {...rest} nextProxy={next()} />
21-
</ServerLocation>
19+
return React.createElement(ServerLocation, {url: addBasepath(url)},
20+
React.createElement(NextProxy, {...rest, nextProxy: next()}))
2221
}
2322
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-cosmos-reach-router-proxy",
3-
"version": "1.1.0",
3+
"version": "1.2.0",
44
"description": "react-cosmos proxy for @reach/router",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)