question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Proper examples for each preset

See original GitHub issue

@clauderic This is a great library but the documentation is quite lacking. The only official example is so much bloated and ridiculously linked.

For instance, The MultipleContainers example in the stories. In the storybook link for the demo, the demos are properly nested and easy to understand what the library is capable of doing, But when you want to understand how it works, Its almost impossible.

The whole sub folder for MultipleContainers exampe in storybook is in MultipleConainers.tsx and it is written in a way that with just props from MultipleContainers.story.tsx, multiple examples can be made but unfortunately when you try to build a component similar to, say MultipleContainers > Basic Setup, there are like a couple dozen of undocumented helper components(Item, Container, ContainerProps) and a ton of props and states and functions which is not used in this specific example.

Please take some time and re-write the examples in separate folders that contains all the needed components inside the folder. This would greatly help the developers and attract more people. This is genuinely a great package and is in par with React-beautiful-dnd or even better than that in performance.

If that’s a lot to ask, atleast make a separate codesandbox for each example. You built the library and I don’t think building already build examples again will be an issue. I can also help in doing so but without proper documentation in the stories, even that’s impossible for me.

Hope you can do something about this.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:17
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

10reactions
niftecommented, Feb 19, 2022

We really need individual codesandboxes or better documentation for each example in the storybook. Trying to reverse engineer the all-in-one <Sortable /> example component is a nightmare.

0reactions
srphcommented, Mar 4, 2022

Hi folks, just leaving this here in case you find it useful. I hacked on it for two mornings so it definitely needs to be cleaned up!

It makes the collision detection more reusable, and might make it simpler to understand. My use-case is much simpler compared to the examples: a sortable grid between multiple containers. The container themselves don’t need to be dragged.

Read more comments on GitHub >

github_iconTop Results From Across the Web

5 Simple ways to tweak your presets to make them work for you
White balance​​ If your whites are white then the rest of your colors will be the same colors seen in the preset sample...
Read more >
Use preset in a sentence
The most voted sentence example for preset is They have no known preset limi... ... can be selected by pressing the select button...
Read more >
Lightroom Presets That Give You a Good Starting Point ...
Each preset is quite subtle, which works great when you only want to ... nicely with nighttime photography, as per the example shot...
Read more >
preset in nLab
For example, consider the identity prefunction on the underlying preset of both Q+ and ... which are presets if each type does not...
Read more >
How to Use Instagram Presets to Develop an Authentic Brand ...
Dommdotcom gives us a great example of this. ... Instagram presets ensure that each post properly represents your brand.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found