-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve the developer experience when using React #459
Comments
I'm trying to evaluate the options we have for integrating framework specific examples in our documentation. Here is what I have so far:
I tend to go with option 3, because it's the least disruptive one while improving the DX significantly, and allows for quick iterations. Feedback welcome. |
With solution 3, do you mean opening only framework specific examples in sandboxes and keeping the non-framework-specific examples as is? |
Yes. |
So, I've been playing around with Storybook yesterday. I like the idea itself, but I believe that the actual "cool" feature from Storybook, which is the ability to tweak props and see how the component changes, does not justify the effort. As @toastedtoast pointed out (internal discussion):
The most important feature requested from @zemirco is:
@toastedtoast also proposed another option:
All in all 6. seems to be the most pragmatic solution. We can even make it even more user friendly by moving the Web Component / CSS Component / React Component switch into the code viewer and persisting the user's choice in local storage, so that, after picking a display option, the choice is stored and used across all examples in the docs. React devs will then always see React examples, while non-React devs will see whatever code they chose to see. |
Think it's definitely crucial to make sure that samples are working to prevent a unfortunate surprises or confusion. |
I have implemented option 6 in a branch for the button component. This is available on our preview environment. Please have a look and let me know what you think: https://liquid-git-docs-reactexamples-uxsd.vercel.app/components/ld-button/ |
We've added React code snippets to all component examples. React developers should now feel a little bit more at home when reading the docs. 🚀 |
According to several sources, React is the strongest frontend development framework available.
https://insights.stackoverflow.com/trends?tags=reactjs%2Cangular%2Cangularjs
https://survey.stackoverflow.co/2022/#web-frameworks-and-technologies
https://www.jetbrains.com/lp/devecosystem-2021/javascript/
https://npmtrends.com/@angular/core-vs-react
https://trends.google.com/trends/explore?cat=733&date=today%205-y&q=React,Angular
https://star-history.com/#facebook/react&angular/angular&Date
It would be really nice to have a better developer experience when using Liquid Design Components with React.
Right now the code snippest in your documentation describe how to use the components as web components. I believe it would be beneficial to also include code snippets for React so developers could simply copy&paste them into their own code.
Other component libraries have that feature and it allows for faster integration.
https://mantine.dev/core/button/
https://ant.design/components/button
https://react.fluentui.dev/?path=/docs/components-button-button--default
Thank you and keep up the great work!
The text was updated successfully, but these errors were encountered: