1.6.0 • Published 5 years ago

react-lift-props v1.6.0

Weekly downloads
21
License
MIT
Repository
github
Last release
5 years ago

react-lift-props · Version CircleCI Codecov

This library solves a problem that occurs when you try to do composition with systems of components. For example, while before you might have this:

<Stepper>
  <Step name="my step name" />
</Stepper>

Now you can do this:

const MyCoolStep = () => {
  return <Step name="my step name" />
}

...

<Stepper>
  <MyCoolStep />
</Stepper>

This let's you encapsulate properties of the sub components so that the parent component doesn't need to know about it's details. It also let's you re-use components, group components, and all the other benefits of composition. For a more in-depth explanation of why this library exists, check out the medium post.

Docs

  • Check out the usage docs here

Limitations

  • Does not work in React Native
  • Does not work with non-index keys
    • Use indexes as keys on lifters and use non-index keys when looping over liftedProps

Roadmap

Contributing

  • fork / clone
  • run npm install && npm run setup
  • open a PR
1.6.0

5 years ago

1.5.1

5 years ago

1.4.1

5 years ago

1.3.1

5 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.9

6 years ago

1.1.8

6 years ago

1.1.7

6 years ago

1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago