├── .babelrc ├── .eslintrc ├── .gitignore ├── .travis.yml ├── LICENSE ├── README.md ├── book.json ├── docs ├── Introduction.md ├── README.md ├── basics │ ├── ComposingDecorators.md │ ├── CreatingProps.md │ ├── KeepingState.md │ ├── ParameterizingDecorators.md │ ├── README.md │ └── TransformingProps.md └── cookbook │ ├── PersistentUniqueIds.md │ └── README.md ├── jsconfig.json ├── package.json ├── src ├── __tests__ │ ├── composeDecorators-test.js │ ├── decorate-test.js │ ├── enforceDecorator-test.js │ ├── fields-test.js │ └── makeDecorator-test.js ├── composeDecorators.js ├── constants.js ├── enforceDecorator.js ├── examples │ ├── __tests__ │ │ ├── counter-test.js │ │ ├── exposeContext-test.js │ │ ├── increment-test.js │ │ └── persistentUniqueId-test.js │ ├── counter.js │ ├── exposeContext.js │ ├── increment.js │ └── persistentUniqueId.js ├── fields.js ├── index.js ├── makeDecoratedComponent.js └── makeDecorator.js └── webpack.config.js /.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/react-decorate/HEAD/.babelrc -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/react-decorate/HEAD/.eslintrc -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/react-decorate/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/react-decorate/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/react-decorate/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/react-decorate/HEAD/README.md -------------------------------------------------------------------------------- /book.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/react-decorate/HEAD/book.json -------------------------------------------------------------------------------- /docs/Introduction.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/react-decorate/HEAD/docs/Introduction.md -------------------------------------------------------------------------------- /docs/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/react-decorate/HEAD/docs/README.md -------------------------------------------------------------------------------- /docs/basics/ComposingDecorators.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/react-decorate/HEAD/docs/basics/ComposingDecorators.md -------------------------------------------------------------------------------- /docs/basics/CreatingProps.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/react-decorate/HEAD/docs/basics/CreatingProps.md -------------------------------------------------------------------------------- /docs/basics/KeepingState.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/react-decorate/HEAD/docs/basics/KeepingState.md -------------------------------------------------------------------------------- /docs/basics/ParameterizingDecorators.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/react-decorate/HEAD/docs/basics/ParameterizingDecorators.md -------------------------------------------------------------------------------- /docs/basics/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/react-decorate/HEAD/docs/basics/README.md -------------------------------------------------------------------------------- /docs/basics/TransformingProps.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/react-decorate/HEAD/docs/basics/TransformingProps.md -------------------------------------------------------------------------------- /docs/cookbook/PersistentUniqueIds.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/react-decorate/HEAD/docs/cookbook/PersistentUniqueIds.md -------------------------------------------------------------------------------- /docs/cookbook/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/react-decorate/HEAD/docs/cookbook/README.md -------------------------------------------------------------------------------- /jsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/react-decorate/HEAD/jsconfig.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/react-decorate/HEAD/package.json -------------------------------------------------------------------------------- /src/__tests__/composeDecorators-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/react-decorate/HEAD/src/__tests__/composeDecorators-test.js -------------------------------------------------------------------------------- /src/__tests__/decorate-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/react-decorate/HEAD/src/__tests__/decorate-test.js -------------------------------------------------------------------------------- /src/__tests__/enforceDecorator-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/react-decorate/HEAD/src/__tests__/enforceDecorator-test.js -------------------------------------------------------------------------------- /src/__tests__/fields-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/react-decorate/HEAD/src/__tests__/fields-test.js -------------------------------------------------------------------------------- /src/__tests__/makeDecorator-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/react-decorate/HEAD/src/__tests__/makeDecorator-test.js -------------------------------------------------------------------------------- /src/composeDecorators.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/react-decorate/HEAD/src/composeDecorators.js -------------------------------------------------------------------------------- /src/constants.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/react-decorate/HEAD/src/constants.js -------------------------------------------------------------------------------- /src/enforceDecorator.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/react-decorate/HEAD/src/enforceDecorator.js -------------------------------------------------------------------------------- /src/examples/__tests__/counter-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/react-decorate/HEAD/src/examples/__tests__/counter-test.js -------------------------------------------------------------------------------- /src/examples/__tests__/exposeContext-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/react-decorate/HEAD/src/examples/__tests__/exposeContext-test.js -------------------------------------------------------------------------------- /src/examples/__tests__/increment-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/react-decorate/HEAD/src/examples/__tests__/increment-test.js -------------------------------------------------------------------------------- /src/examples/__tests__/persistentUniqueId-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/react-decorate/HEAD/src/examples/__tests__/persistentUniqueId-test.js -------------------------------------------------------------------------------- /src/examples/counter.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/react-decorate/HEAD/src/examples/counter.js -------------------------------------------------------------------------------- /src/examples/exposeContext.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/react-decorate/HEAD/src/examples/exposeContext.js -------------------------------------------------------------------------------- /src/examples/increment.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/react-decorate/HEAD/src/examples/increment.js -------------------------------------------------------------------------------- /src/examples/persistentUniqueId.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/react-decorate/HEAD/src/examples/persistentUniqueId.js -------------------------------------------------------------------------------- /src/fields.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/react-decorate/HEAD/src/fields.js -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/react-decorate/HEAD/src/index.js -------------------------------------------------------------------------------- /src/makeDecoratedComponent.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/react-decorate/HEAD/src/makeDecoratedComponent.js -------------------------------------------------------------------------------- /src/makeDecorator.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/react-decorate/HEAD/src/makeDecorator.js -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HubSpot/react-decorate/HEAD/webpack.config.js --------------------------------------------------------------------------------