---
title: Product Feedback Survey
product: Survey Creator
description: Create a product feedback survey to сollect valuable insights from your customers. Start with this free template of a product evaluation survey for JavaScript to select questions you want to add.
framework: React
source: https://surveyjs.io/survey-creator/examples/product-feedback-survey-template/reactjs
index: https://surveyjs.io/survey-creator/examples/overview.md
---

# Product Feedback Survey (React)

## Files

### `public/index.html`

```html
<!-- Uncomment the following lines to enable Ace Editor in the JSON Editor tab -->
<!-- 
<script src="https://unpkg.com/ace-builds/src-min-noconflict/ace.js"></script>
<script src="https://unpkg.com/ace-builds/src-min-noconflict/ext-searchbox.js"></script>
<script src="https://unpkg.com/ace-builds/src-min-noconflict/theme-clouds_midnight.js"></script>
-->

<div id="surveyCreatorContainer" style="position: absolute; height: 100%; width: 100%"></div>
```

### `src/survey_json.js`

```js
export const surveyJSON = {
    "title": "Product Feedback Survey",
    "description": "Your opinion matters to us!",
    "logo": "https://surveyjs.io/Content/Images/examples/logo.png",
    "logoHeight": "60px",
    "headerView": "advanced",
    "elements": [
        {
            "type": "radiogroup",
            "name": "discovery-source",
            "title": "How did you first hear about us?",
            "choices": [
                "Search engine (Google, Bing, etc.)",
                "Online newsletter",
                "Blog post",
                "Word of mouth",
                "Social media"
            ],
            "showOtherItem": true,
            "otherPlaceholder": "Please specify...",
            "otherText": "Other"
        },
        {
            "type": "radiogroup",
            "name": "social-media-platform",
            "visibleIf": "{discovery-source} = 'Social media'",
            "title": "Which platform?",
            "choices": [
                "YouTube",
                "Facebook",
                "Instagram",
                "TikTok",
                "LinkedIn"
            ],
            "showOtherItem": true,
            "otherPlaceholder": "Please specify...",
            "otherText": "Other"
        },
        {
            "type": "matrix",
            "name": "quality",
            "title": "To what extent do you agree with the following statements?",
            "columns": null,
            "columns": [
                {
                    "value": 1,
                    "text": "Strongly disagree"
                },
                {
                    "value": 2,
                    "text": "Disagree"
                },
                {
                    "value": 3,
                    "text": "Undecided"
                },
                {
                    "value": 4,
                    "text": "Agree"
                },
                {
                    "value": 5,
                    "text": "Strongly agree"
                }
            ],
            "rows": [
                {
                    "text": "The product meets my needs",
                    "value": "needs-are-met"
                },
                {
                    "text": "Overall, I am satisfied with the product",
                    "value": "satisfaction"
                },
                {
                    "text": "Some product features require improvement",
                    "value": "improvements-required"
                }
            ],
            "columnMinWidth": "40px",
            "rowTitleWidth": "300px"
        },
        {
            "type": "rating",
            "name": "buying-experience",
            "title": "How would you rate the buying experience?",
            "minRateDescription": "Hated it!",
            "maxRateDescription": "Loved it!"
        },
        {
            "type": "comment",
            "name": "low-score-reason",
            "visibleIf": "{buying-experience} <= 3",
            "titleLocation": "hidden",
            "showNumber": false,
            "placeholder": "What's the main reason for your score?",
            "maxLength": 500
        },
        {
            "type": "boolean",
            "name": "have-used-similar-products",
            "title": "Have you used similar products before?"
        },
        {
            "type": "text",
            "name": "similar-products",
            "visibleIf": "{have-used-similar-products} = true",
            "titleLocation": "hidden",
            "showNumber": false,
            "placeholder": "Please specify the similar products..."
        },
        {
            "type": "ranking",
            "name": "product-aspects-ranked",
            "title": "These are some important aspects of the product. Rank them in terms of your priority.",
            "description": "From the highest (the most important) to the lowest (the least important).",
            "choices": [
                "Technical support",
                "Price",
                "Delivery option",
                "Quality",
                "Ease of use",
                "Product warranties"
            ]
        },
        {
            "type": "text",
            "name": "missing-feature",
            "title": "What's the ONE thing our product is missing?"
        },
        {
            "type": "dropdown",
            "name": "price-accuracy",
            "title": "Do you feel our product is worth the cost?",
            "choices": [
                {
                    "value": 5,
                    "text": "Definitely"
                },
                {
                    "value": 4,
                    "text": "Probably"
                },
                {
                    "value": 3,
                    "text": "Maybe"
                },
                {
                    "value": 2,
                    "text": "Probably not"
                },
                {
                    "value": 1,
                    "text": "Definitely not"
                }
            ],
            "allowClear": false
        },
        {
            "type": "boolean",
            "name": "have-additional-thoughts",
            "title": "Is there anything you'd like to add?"
        },
        {
            "type": "comment",
            "name": "additional-thoughts",
            "visibleIf": "{have-additional-thoughts} = true",
            "titleLocation": "hidden",
            "placeholder": "Please share your thoughts..."
        }
    ],
    "showProgressBar": true,
    "progressBarType": "questions",
    "widthMode": "static",
    "width": "864px"
};
```

### `src/SurveyCreatorComponent.jsx`

```js
import React from "react";
import { SurveyCreator, SurveyCreatorComponent } from "survey-creator-react";
import "survey-core/survey.i18n";
import "survey-creator-core/survey-creator-core.i18n";
import { surveyJSON } from "./survey_json";
import "survey-core/survey-core.css";
import "survey-creator-core/survey-creator-core.css";
import "./index.css";

import SurveyTheme from "survey-core/themes";
import { registerCreatorTheme } from "survey-creator-core";

registerCreatorTheme(SurveyTheme); // Add predefined Survey Creator UI themes

function SurveyCreatorRenderComponent() {
    const creator = new SurveyCreator();
    creator.JSON = surveyJSON;
    return (<SurveyCreatorComponent creator={creator} />);
}

export default SurveyCreatorRenderComponent;
```

### `src/index.css`

```css
/* You can add your custom CSS here. */
```

### `src/index.js`

```js
import React from "react";
import { createRoot } from "react-dom/client";
import SurveyCreatorRenderComponent from "./SurveyCreatorComponent";

const root = createRoot(document.getElementById("surveyCreatorContainer"));
root.render(<SurveyCreatorRenderComponent />);
```

### `package.json`

```json
{
  "dependencies": {
    "react": "latest",
    "react-dom": "latest",
    "survey-core": "latest",
    "survey-react-ui": "latest",
    "survey-creator-core": "latest",
    "survey-creator-react": "latest"
  },
  "devDependencies": {
    "react-scripts": "latest"
  }
}
```

## Other Frameworks

- [Angular](https://surveyjs.io/survey-creator/examples/product-feedback-survey-template/angular.md)
- [Vue 3](https://surveyjs.io/survey-creator/examples/product-feedback-survey-template/vue3js.md)
- [jQuery](https://surveyjs.io/survey-creator/examples/product-feedback-survey-template/jquery.md)
- [Vanilla JS](https://surveyjs.io/survey-creator/examples/product-feedback-survey-template/vanillajs.md)
