I have created a blank project with the UXP Developer Tools. And I have only added a Spectrum React Button. But the onPress event does not work, only the onClick works.
import React from "react";
import { WC } from "./WC.jsx";
import "./Home.css";
import { Button, Provider, darkTheme } from "@adobe/react-spectrum";
export const Home = () => {
const handleXDButton = () => {
console.log("WORK");
};
return (
<div>
<WC>
<Provider theme={darkTheme} colorScheme="dark">
<p className="display">
Congratulations! You just created your first React Plugin.
</p>
<Button variant="primary" onPress={handleXDButton}>
XD
</Button>
</Provider>
</WC>
</div>
);
};
what you mean is that although adobe in its UXP Developer Tools gives the option to create a react based project, it does not ensure compatibility with its own Spectrum react components?
Actually all this has me very confused, the Adobe documentation for this is terrible! Can you recommend me the right way to set up a project to develop a plugin for InDesign?