diff --git a/.gitignore b/.gitignore index 2da724d..93002df 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,11 @@ node_modules lib public yarn-error.log +element.js +intercept.js +JSXComponent.js +reduxish.js +renderClient.js +renderServer.js +synteticEvents.js +utils.js diff --git a/.npmignore b/.npmignore index e348e68..eda4be7 100644 --- a/.npmignore +++ b/.npmignore @@ -3,3 +3,13 @@ src examples .babelrc .travis.yml +recipes +test +.babelrc +.editorconfig +README.md +yarn.lock +.travis.yml +.gitignore +.prettierrc +yarn-error.log diff --git a/README.md b/README.md index 6afefa6..323a50a 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [](https://travis-ci.org/alecsgone/jsx-render) -Small file to render jsx as a stateless component from react but without the heavy kb use of it. +Small file to render jsx as a stateless component from react but without the heavy kb use of it. and now includes server side rendering ## Contents @@ -35,10 +35,7 @@ Make sure you have the pragma fn defined and its name is "dom" ```json // .babelrc { - "presets": [ - "babel-preset-primavera", - ["@babel/preset-react", { "pragma": "dom" }] - ] + "presets": ["@babel/preset-env", ["@babel/preset-react", { "pragma": "dom" }]] } ``` @@ -51,6 +48,17 @@ const DummyComponent = props => (