# Convert Design to React

The Monday Hero Team is working hard to enable you to create the React projects. However, without this support, you can still get React code from Monday Hero using the steps below:

### How to Get React Code:

1. [Log in](https://learn.mondayhero.io/getting-started/login-create-project-in-monday-hero) to your Monday Hero account.
2. [Create a Flutter project](https://learn.mondayhero.io/getting-started/login-create-project-in-monday-hero).&#x20;
3. [Upload](https://learn.mondayhero.io/getting-started/import-design-files-into-monday-hero) designs to your project. Please make sure the designs are revised to[ get the best code results](https://learn.mondayhero.io/getting-started/design-handoff-to-ios-android-developer) on Monday Hero.
4. Create[ custom Flutter components](https://learn.mondayhero.io/design-to-flutter/creating-components/custom-components) like Custom Widgets, Buttons, Lists, and more. Preview the code on Monday Hero if you like.&#x20;
5. Once the component code is ready, click 'AI Assistant' to start.

   <figure><img src="https://479678609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MEfkN8oSQyQ4BaBzwxH-4037006485%2Fuploads%2FCI1IXkkswFHoyGxTb7rt%2FScreenshot%202024-07-08%20at%2022.35.46.png?alt=media&#x26;token=2a542a71-82c3-4c6a-903c-f7cf4542396d" alt=""><figcaption><p>Hero AI Assistant</p></figcaption></figure>

Once you start the Assistant, it will automatically generate the Flutter code.

<figure><img src="https://479678609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MEfkN8oSQyQ4BaBzwxH-4037006485%2Fuploads%2FwzJZCJBpZ7yPC7h7YeH3%2FScreenshot%202024-07-08%20at%2022.37.30.png?alt=media&#x26;token=4b33fe0f-3dcb-450a-92e1-8b421b725e16" alt=""><figcaption></figcaption></figure>

6. Select '**Convert to React**' on the prompts and then click '**Submit**'.&#x20;

<figure><img src="https://479678609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MEfkN8oSQyQ4BaBzwxH-4037006485%2Fuploads%2FHLRhRKuHdo88UPoEScJ0%2FScreenshot%202024-07-08%20at%2022.38.43.png?alt=media&#x26;token=e897d434-4649-454f-9bac-e49c4d73d285" alt=""><figcaption><p>Prompts Screen</p></figcaption></figure>

Now you have the React code created for you!

<figure><img src="https://479678609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MEfkN8oSQyQ4BaBzwxH-4037006485%2Fuploads%2FGTL7okDFdkxF4EJGhfpf%2FScreenshot%202024-07-08%20at%2022.40.10.png?alt=media&#x26;token=25b9501b-55c7-4163-8f5b-f60f6104b422" alt=""><figcaption><p>React Code</p></figcaption></figure>

7. Once you have the React code, you can either use it in the way that's provided or write your own prompt. For example you can type: '**Create Styled Components**' in order to get the styles separately(like the example below). It's done!

Here is another React code example:

<figure><img src="https://479678609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MEfkN8oSQyQ4BaBzwxH-4037006485%2Fuploads%2F07mUNRh5kxW6FM5GZNzF%2FScreenshot%202024-05-08%20at%2013.24.02.png?alt=media&#x26;token=a6224cc9-f96a-4f5d-bbb3-be4925ab5d8c" alt=""><figcaption><p>React Code Example</p></figcaption></figure>

<figure><img src="https://479678609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MEfkN8oSQyQ4BaBzwxH-4037006485%2Fuploads%2FDnxqLrhHMTEURbWRyNbi%2FScreenshot%202024-05-08%20at%2013.20.07.png?alt=media&#x26;token=64e9c178-7c9a-476b-a74d-80cb4bcc824f" alt=""><figcaption><p>React Code Example Continued</p></figcaption></figure>

{% hint style="info" %}
Please remember to add the Colors Code to the AI Assistant prompt to ensure the correct colors in the generated React code.
{% endhint %}

<figure><img src="https://479678609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MEfkN8oSQyQ4BaBzwxH-4037006485%2Fuploads%2Fb3eAL4iyaXuIsS48y1sh%2FScreenshot%202024-07-08%20at%2022.56.20.png?alt=media&#x26;token=03b53fa0-b024-4b15-9572-74f69daab77f" alt=""><figcaption><p>Color Code</p></figcaption></figure>

If you have new prompt requests or any questions, please contact us at <team@mondayhero.io> or visit [https://mondayhero.io](https://mondayhero.io/) and start a chat from the bottom right of the page.
