<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>How can I import Liferay Portal library to my react project?</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121666892" />
  <subtitle>How can I import Liferay Portal library to my react project?</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121666892</id>
  <updated>2026-06-06T06:54:07Z</updated>
  <dc:date>2026-06-06T06:54:07Z</dc:date>
  <entry>
    <title>RE: How can I import Liferay Portal library to my react project?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121871990" />
    <author>
      <name>Wladimir Gittel</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121871990</id>
    <updated>2023-06-19T17:29:12Z</updated>
    <published>2023-06-19T11:33:26Z</published>
    <summary type="html">&lt;p&gt;Hi Gregorio,&lt;/p&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;https://github.com/liferay/liferay-portal/tree/master/workspaces/liferay-sample-workspace/client-extensions/liferay-sample-custom-element-2&lt;/p&gt;</summary>
    <dc:creator>Wladimir Gittel</dc:creator>
    <dc:date>2023-06-19T11:33:26Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: How can I import Liferay Portal library to my react project?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121670564" />
    <author>
      <name>Gregorio Rossi</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121670564</id>
    <updated>2023-03-16T20:13:13Z</updated>
    <published>2023-03-16T09:33:04Z</published>
    <summary type="html">&lt;p&gt;Already tried, still not working unfortunately.&lt;/p&gt;</summary>
    <dc:creator>Gregorio Rossi</dc:creator>
    <dc:date>2023-03-16T09:33:04Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: How can I import Liferay Portal library to my react project?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121670115" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121670115</id>
    <updated>2023-03-15T19:48:49Z</updated>
    <published>2023-03-14T21:14:44Z</published>
    <summary type="html">&lt;p&gt;Try using &lt;code&gt;window.Liferay.ThemeDisplay&lt;/code&gt;.&lt;/p&gt;</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2023-03-14T21:14:44Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: How can I import Liferay Portal library to my react project?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121669392" />
    <author>
      <name>Gregorio Rossi</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121669392</id>
    <updated>2023-03-14T17:37:30Z</updated>
    <published>2023-03-14T10:52:20Z</published>
    <summary type="html">&lt;p&gt;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.&lt;/p&gt;</summary>
    <dc:creator>Gregorio Rossi</dc:creator>
    <dc:date>2023-03-14T10:52:20Z</dc:date>
  </entry>
  <entry>
    <title>RE: How can I import Liferay Portal library to my react project?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121668394" />
    <author>
      <name>Christoph Rabel</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121668394</id>
    <updated>2023-03-13T17:45:56Z</updated>
    <published>2023-03-11T10:04:24Z</published>
    <summary type="html">&lt;p&gt;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.&lt;/p&gt;</summary>
    <dc:creator>Christoph Rabel</dc:creator>
    <dc:date>2023-03-11T10:04:24Z</dc:date>
  </entry>
  <entry>
    <title>How can I import Liferay Portal library to my react project?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121666891" />
    <author>
      <name>Gregorio Rossi</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121666891</id>
    <updated>2023-03-09T17:31:07Z</updated>
    <published>2023-03-09T10:25:34Z</published>
    <summary type="html">&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;I searched on the net and the library that i have to use should be
  this one, so how can i add to my react application?&lt;/p&gt;
&lt;p&gt;
  &lt;br /&gt; Thanks everyone.&lt;/p&gt;</summary>
    <dc:creator>Gregorio Rossi</dc:creator>
    <dc:date>2023-03-09T10:25:34Z</dc:date>
  </entry>
</feed>
