windingwind/zotero-plugin-template

Use react for plugin development

lifan0127 opened this issue · 4 comments

Hi, I have seen some Zotero plugins built with React: https://github.com/diegodlh/zotero-cita

Is it supported by zotero-plugin-template? Thanks!

Yes. To get the react instance: const React = ztoolkit.getGlobal("require")("react") (or, Zotero.getMainWindow().require("react"))

Thanks, @windingwind Is there a zotero-plugin-template based plugin implemented in React that I can use as a guide?

React is a framework to create UI components. If you are not doing a lot of reusable UI stuff, no need to use it.

Thanks for the guidance!