Ticket T990117
Visible to All Users

devextreme-react without npm

created 4 years ago

Hi team,

How to use this package without npm?

React (in combination with ReactDOM) can be used without npm out of the box. Like old fashioned commonjs library, e.g.

JavaScript
<script src="react.production.min.js"></script> <script src="react-dom.production.min.js"></script> .... ReactDOM.render( React.createElement(component, props), htmlElement );

What about devextreme-react, how to use it in the same way?

Answers approved by DevExpress Support

created 4 years ago

Hi Pavel,

Currently, we do not support a non-modular way of using our components out of the box. However, you can create your own custom bundle with WebPack. Here you can find an example for our Vue components: Github Issue. You can use it as a starting point. Please note that you should use the WebPack React example in the first paragraph.

However, we will need additional time to check if this solution is applicable to React and create a guide.

Let me know if you have additional questions.

    Comments (1)

      I also have this need, please be sure to provide this development option!

      Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

      Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.