How to Convert Your Figma Design into React Code: Step by Step Guide ⚛️

Piyush Kumar
5 min readSep 5, 2022

--

Do you want to speed up your React.js application development? Precisely by automatically converting your design into React components!

If yes, DhiWise web app builder is here to save some precious time, which you can otherwise use to develop critical application features. The mentioned web app builder can quickly generate production-ready code from your Figma design. And what’s important is that it follows the ethos of visual programming to the letter.

In this article, we are going to learn how DhiWise can help you get a production-ready front-end application, along with features like Page navigation and API integrations.

Before that, let’s start with a brief introduction to Figma and React.

Figma 🖌️

Figma is a popular web-based vector graphics editor and prototyping tool. It comes with additional functionalities supported by desktop applications for macOS and Windows.

It allows mobile users to view Figma prototypes in real-time using Figma mirror companion apps — for both Android and iOS. Also, it enables designers and developers to create UI and wireframing for web and mobile apps.

React.js ⚛️

React is a free and open-source front-end JavaScript library for building user interfaces based on UI components. It is maintained by Meta and a community of individual developers and companies.

React is used to build single-page applications. It allows us to create reusable UI components.

For Getting above 80 % design accuracy in your Code, Follow These Design Guidelines while designing your Figma.

Let’s Dive deeper into it…🚀️

Step 1: Sign in to DhiWise

First thing first, Sign up/into DhiWise using your Google or GitHub account.

Signup to DhiWise

Step 2: Create a new application

Once done, you will be directed to the Dashboard where you can search and view the previously created apps. To start building a new application, just click New application, it will redirect you to Create new application page.

Dashboard

Step 3: Select React as a technology to create an application

Yep, that’s it. It is as simple as choosing the ice cream flavor.

Select React web app

Step 4: Connect your Figma Account and Import Figma

Next, Import your design from Figma, XD, or Sketch to DhiWise. If you don’t have any ready design, DhiWise provides ready-to-use app templates and screen libraries.

To import an app design, select the platform on which the app is designed. Enter the Application name and select Figma. To import Figma files to the DhiWise you need to integrate your Figma account with DhiWise.

You can always migrate designs from other mentioned platforms but for that, you might need to put out a request and give it 24–48 hours for DhiWise to process the same for you.

Select Figma

Step 5: Select Pages

Next, you can select multiple pages from your Figma file as and use them in your application as shown. Remember, if you have already set up the prototype for your pages, half of your work is almost done.

Reason: DhiWise fetches page resources automatically, including the navigation. And you don’t need to deal with individual navigation and other configurations again.

select-screens

Step 6: Customization

After the pages are imported, You can change views directly from here. This functionality covers you for the misidentified Figma elements if any (the chances of that are bleak).

Additionally, you can apply actions starting from authentication to navigation and back navigation, Open modal, as well as API Integration. Yes, You can bind real-time data from REST APIs to your pages.

Learn More about All the features In Details: React web app Builder

Step 7: Generate Source Code

After the customization is done, click on ‘Build’ to get the structured source code with all the customizations in a few minutes.

Build app and view code

Step 8: Download/Sync your code to GitHub/GitLab

Once your App is built, you can download the entire source code from the DhiWise and/or sync it with your GitHub or GitLab Repository.

If you make more changes in DhiWise application and you want updated code in your application, you can use VSCode Extension to get the latest code directly into your Vscode.

Additional Things

There are two awesome features from DhiWise to make the development life more exciting — all while using DhiWise.

  1. Now you can see a prototype of your app by deploying the application to Vercel in a single click!
  2. Secondly, You can use Figma to Code plugin in Figma to get the code in minutes.

Thank You

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Piyush Kumar
Piyush Kumar

Written by Piyush Kumar

Student || WebDeveloper || LearningEnthusiast

No responses yet

Write a response