How can I import Liferay Portal library to my react project?How can I import Liferay Portal library to my react project?https://liferay.dev/c/message_boards/find_thread?p_l_id=119785333&threadId=1216668922024-03-29T00:08:15Z2024-03-29T00:08:15ZRE: How can I import Liferay Portal library to my react project?Wladimir Gittelhttps://liferay.dev/c/message_boards/find_message?p_l_id=119785333&messageId=1218719902023-06-19T17:29:12Z2023-06-19T11:33:26Z<p>Hi Gregorio,</p>
<p>in Liferay Github you can find some examples how it works. As I
unterstand you try to run something like coded in this client extension:</p>
<p>https://github.com/liferay/liferay-portal/tree/master/workspaces/liferay-sample-workspace/client-extensions/liferay-sample-custom-element-2</p>Wladimir Gittel2023-06-19T11:33:26ZRE: RE: How can I import Liferay Portal library to my react project?Gregorio Rossihttps://liferay.dev/c/message_boards/find_message?p_l_id=119785333&messageId=1216705642023-03-16T20:13:13Z2023-03-16T09:33:04Z<p>Already tried, still not working unfortunately.</p>Gregorio Rossi2023-03-16T09:33:04ZRE: RE: How can I import Liferay Portal library to my react project?David H Nebingerhttps://liferay.dev/c/message_boards/find_message?p_l_id=119785333&messageId=1216701152023-03-15T19:48:49Z2023-03-14T21:14:44Z<p>Try using <code>window.Liferay.ThemeDisplay</code>.</p>David H Nebinger2023-03-14T21:14:44ZRE: RE: How can I import Liferay Portal library to my react project?Gregorio Rossihttps://liferay.dev/c/message_boards/find_message?p_l_id=119785333&messageId=1216693922023-03-14T17:37:30Z2023-03-14T10:52:20Z<p>I've already tried to use it without import anything but it didn't
work. I have the error 'Liferay’ is not defined that's why i thought i
had to import something. How can I solve this error? Thanks.</p>Gregorio Rossi2023-03-14T10:52:20ZRE: How can I import Liferay Portal library to my react project?Christoph Rabelhttps://liferay.dev/c/message_boards/find_message?p_l_id=119785333&messageId=1216683942023-03-13T17:45:56Z2023-03-11T10:04:24Z<p>The Liferay object is added to all Liferay pages as a global
variable, so you should be able to just access it directly when your
React application is added to a Liferay page. No need to import anything.</p>Christoph Rabel2023-03-11T10:04:24ZHow can I import Liferay Portal library to my react project?Gregorio Rossihttps://liferay.dev/c/message_boards/find_message?p_l_id=119785333&messageId=1216668912023-03-09T17:31:07Z2023-03-09T10:25:34Z<p>Hello everyone, i would like to use the command Liferay.ThemeDisplay
in my react application but if i try to install the library
liferay-portal or frontend-js-web with npm I get errors, so i tried to
install directly from github with the command npm
install https://github.com/liferay/liferay-portal but is still not working.</p>
<p>I searched on the net and the library that i have to use should be
this on