Connect mergeProps

Connects a component to the redux store and generates mergeProps only.

How it works

  • Defines mergeProps below the component definition (if not present)
  • Wraps exported (returned, if it's a HOC) component with connect (if not present)
  • Uses mergeProps with aforementioned connect (replacing null values if present)
  • Adds connect import statement (if not present)


© 2018 - 2019 Kamil Mielnik & Yuriy Yakym. All rights reserved.