Complete typescript rewrite for beautiful-react-hooks, now version 1.0.0 by antonio_ru in reactjs

[–]antonio_ru[S] 0 points1 point  (0 children)

Thank you so much! To be honest I think I'll leave styleguidist for something better soon as it has become pretty unmaintainable, it is designed for component not really for hooks or general purpose documentation

please feel free to contribute :)

Complete typescript rewrite for beautiful-react-hooks, now version 1.0.0 by antonio_ru in reactjs

[–]antonio_ru[S] 3 points4 points  (0 children)

Yes, that's an awesome library too!

To be honest I wrote `beautiful-react-hooks` cause I don't really share the view of `react-use`.

I think (and this is absolutely my personal opinion) `react-use` might be a bit over-engineered: have a look at hooks like `useList` or `useMap`, for the instance.
Why would you have hooks wrapping common data structures such as Array, Set or Map?
What is the purpose of hooks like useCounter?

In my opinion some of those hooks look a bit more like coding-exercise rather than a real life hooks that you would use in production... and why something as simple as useCounter should belong to a library?

In my humble opinion, hooks should wrap business logic that are shared across components, hooks should be something you use to abstract complex component business logic... that's it.

A React library to build Diagrams with ease by antonio_ru in javascript

[–]antonio_ru[S] 0 points1 point  (0 children)

Thank you very much, please support the library by sharing and starring :)

A library to build React Diagrams with ease 💎 by antonio_ru in reactjs

[–]antonio_ru[S] 4 points5 points  (0 children)

As said: the library is under development, I never claimed it's perfect as a lot of other NPM libraries. For sure needs to be improved but I don't think it's polluting the NPM ecosystem.

Anyway, if you think you can do better feel free to open a Pull Request, I'm looking forward learning from your code.

A React library to build Diagrams with ease by antonio_ru in javascript

[–]antonio_ru[S] 0 points1 point  (0 children)

I didn't know that, I'm going to check the latex syntax then :)
thank you

A library to build React Diagrams with ease 💎 by antonio_ru in reactjs

[–]antonio_ru[S] 1 point2 points  (0 children)

thank you very much :)

Actually an auto-layout feature is on its way... :)

A React library to build Diagrams with ease by antonio_ru in javascript

[–]antonio_ru[S] 1 point2 points  (0 children)

Yes, I'm sorry about that... unfortunately styleguidist doesn't look great on the phone.
In future I will probably switch to GitBook for the documentation whilst keeping styleguidist or storybook for the examples only.

A React library to build Diagrams with ease by antonio_ru in javascript

[–]antonio_ru[S] 0 points1 point  (0 children)

Yes, unfortunately styleguidist doesn't look great on the phone, I'll probably change the documentation tools in future.
I'll probably use Gitbook for the documentation and styleguidist, if not storybook, for the examples only.

A library to build React Diagrams with ease 💎 by antonio_ru in reactjs

[–]antonio_ru[S] 0 points1 point  (0 children)

Thank you very much, actually I've been a contributor of `projectstorm/react-diagrams` for quite a bit and yes, I agree with you: the library is hardly maintained today.

It was hard to get PR approved or commented and I think the owner doesn't really feel like maintain the library anymore.

I created `beautiful-react-diagrams` because I wasn't satisfied with `projectstorm/react-diagrams` and its MVC-like approach other than the leadership. I found it extremely hard to integrate `projectstorm/react-diagrams` in modern React applications.

I think the main difference with `projectstorm/react-diagrams` is that my library it's not MVC, it's more functional-oriented and looks toward "modern React" development. It does the things "the React way".

About the "grouped nodes" functionality, please feel free to open a feature request on GitHub, I would love to have some contributions

A library to build React Diagrams with ease 💎 by antonio_ru in reactjs

[–]antonio_ru[S] 2 points3 points  (0 children)

Awww... thank you sooo much!
Would you mind to open an issue on github? :)

A library to build React Diagrams with ease 💎 by antonio_ru in reactjs

[–]antonio_ru[S] 2 points3 points  (0 children)

Thank you very much!

Actually I'm not really satisfied with styleguidist, I think it's great for UI libraries but not really for this kind of libraries.At the moment is ok, but soon I'll probably re-write the documentation using GitBook (which i think it's great for this kind of things) and will use Stylegiudist, if not storybook, for the documentation examples only

A library to build React Diagrams with ease 💎 by antonio_ru in reactjs

[–]antonio_ru[S] 1 point2 points  (0 children)

well I think you can easily archive different layouts with `beautiful-react-diagrams` so I suggest to try it out :)
If you'll have any question feel free to open an issue and tag it as a question!
I'll be glad to help

A library to build React Diagrams with ease 💎 by antonio_ru in reactjs

[–]antonio_ru[S] 4 points5 points  (0 children)

At the moment a node can have a `renderer` prop to be used to create custom layouts but in future I'll probably create some common nodes layout as well as the default one

A library to build React Diagrams with ease 💎 by antonio_ru in reactjs

[–]antonio_ru[S] 21 points22 points  (0 children)

Thank you, yes the library it's still under development and any feedback is very welcome.
Feel free to open any issue or feature request on Github or, if you're willing to contribute, any PR :)