Discussion:
Reuse React Components between two plugins?
Rohan Joseph
2018-07-23 10:21:49 UTC
Permalink
Hi everyone!

I'm working on two plugins for cockpit. There is a React component that I
need for both of my plugins, and we are concerned about having to maintain
this component in two separate repositories. Has anyone else encountered
this problem, and how did they deal with it? Any suggestions? Is providing
it like base1 is provided possible/recommended?

The common component is called wizard, and both components pass it step
components as children.

Thanks,

Rohan CJ
Tomas Jelinek
2018-07-23 11:06:30 UTC
Permalink
Post by Rohan Joseph
Hi everyone!
I'm working on two plugins for cockpit. There is a React component that I
need for both of my plugins, and we are concerned about having to maintain
this component in two separate repositories. Has anyone else encountered
this problem, and how did they deal with it? Any suggestions? Is providing
it like base1 is provided possible/recommended?
The common component is called wizard, and both components pass it step
components as children.
could you use this wizard from patternfly-react repo?
https://rawgit.com/patternfly/patternfly-react/gh-pages/index.html?knob-Active%20Step%20Index=0&selectedKind=patternfly-react%2FCommunication%2FWizard%2FPatterns&selectedStory=Stateful%20WizardPattern%20Example&full=0&addons=1&stories=1&panelRight=0&addonPanel=storybooks%2Fstorybook-addon-knobs
Post by Rohan Joseph
Thanks,
Rohan CJ
_______________________________________________
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/cockpit-
Daniel Hilst Selli
2018-08-13 15:56:51 UTC
Permalink
Post by Rohan Joseph
Hi everyone!
I'm working on two plugins for cockpit. There is a React component that I need
for both of my plugins, and we are concerned about having to maintain this
component in two separate repositories. Has anyone else encountered this
problem, and how did they deal with it? Any suggestions? Is providing it like
base1 is provided possible/recommended?
The common component is called wizard, and both components pass it step
components as children.
Thanks,
Rohan CJ
_______________________________________________
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
ts.fedorahosted.org/message/7PL2VPYCZRWZALVG3L3RXIOAA2IWJUTW/
Sorry for reviving old thread, but I have the same case here. What I do is host
the generic components on a library. If you can't open the library like me, use
verdaccio as private registry.

https://github.com/verdaccio/verdaccio

Cheers
_______________________________________________
cockpit-devel mailing list -- cockpit-***@lists.fedorahosted.org
To unsubscribe send an email to cockpit-devel-***@lists.fedorahosted.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/cockpit-***@lists.fedorahosted.org/message/A7F5TZPONFP424GTIYXHO6W
Loading...