TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: How to build a small survey system in a React based product

1 点作者 praving5将近 8 年前
Hi All, I need to build a survey system in my current React based product. Basically, survey is not the core functionality of the product. It may or may not be used.<p>Survey would have approx 50 questions and should be able to take boolean, string or multiple-choice values. Any suggestions to have something light weight developed within the product?<p>I was looking at http:&#x2F;&#x2F;surveyjs.org&#x2F; - How good is this?

1 comment

acemarke将近 8 年前
You should be able to develop that just using basic React components, inputs, and form management approaches. Here&#x27;s my standard advice for learning how to use forms in React:<p>Gosha Arinich has written an excellent series of articles on how to use forms in React, at <a href="https:&#x2F;&#x2F;goshakkk.name&#x2F;on-forms-react&#x2F;" rel="nofollow">https:&#x2F;&#x2F;goshakkk.name&#x2F;on-forms-react&#x2F;</a> . I highly recommend you read those. In particular, he describes the concepts of &quot;controlled inputs&quot; and &quot;uncontrolled inputs&quot;, which are important to understand when writing forms in React, as well as managing a list of inputs.<p>He&#x27;s also recently published a book called &quot;The Missing Forms Handbook of React&quot;, which is very much worth it: <a href="https:&#x2F;&#x2F;goshakkk.name&#x2F;the-missing-forms-handbook-of-react&#x2F;" rel="nofollow">https:&#x2F;&#x2F;goshakkk.name&#x2F;the-missing-forms-handbook-of-react&#x2F;</a> . Beyond that, I have links to a number of other articles that deal with forms, at <a href="https:&#x2F;&#x2F;github.com&#x2F;markerikson&#x2F;react-redux-links&#x2F;blob&#x2F;master&#x2F;react-forms.md" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;markerikson&#x2F;react-redux-links&#x2F;blob&#x2F;master...</a> .<p>If you&#x27;ve got more questions, I&#x27;d encourage you to drop by the Reactiflux chat channels on Discord. It&#x27;s a great place to learn, ask for help, and discuss React and related topics. The invite link is at <a href="https:&#x2F;&#x2F;www.reactiflux.com" rel="nofollow">https:&#x2F;&#x2F;www.reactiflux.com</a> .