Skip to content

Commit dd64ac5

Browse files
authored
Merge pull request mendix#9042 from wrdsnd/react-client-migration-index
Added migration instructions for the customized index.html
2 parents 8c06369 + e0c6921 commit dd64ac5

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

  • content/en/docs/refguide/runtime/mendix-client

content/en/docs/refguide/runtime/mendix-client/react.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,16 @@ The migration mode will show deprecation warnings instead of errors for all inco
8383

8484
Read further for guides that allow you convert your app so it is ready for the React client.
8585

86+
### Custom `index.html`{#index}
87+
88+
The structure of the `index.html` file is different for React and Dojo clients. To make sure your application will work correctly, follow these steps:
89+
90+
1. Delete the custom `index.html`, or rename it temporarily.
91+
2. Run the local deployment and copy the app/deployment/web/index-example.html to your app/theme/web/index.html. That will be your new `index.html`.
92+
3. Apply any changes you want.
93+
94+
It is also possible to keep custom `index.html` files for both clients. To do this, name the React client index file *index-react.html*. This file will take precedence when the React client is enabled, while the `index.html` will be used for Dojo client deployments.
95+
8696
### Marketplace Components{#marketplace}
8797

8898
Not all Mendix Marketplace components are ready for the React client. Refer to [Marketplace Component React Status](/refguide/mendix-client/marketplace-react-status/) to see which of the most popular marketplace components are React ready. If a module or widget you are using is not on the list, test it for yourself then reach out to the authors to update it if not.

0 commit comments

Comments
 (0)