Security News
CISA Brings KEV Data to GitHub
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
react-survey
Advanced tools
React-Survey is a React component to add user-friendly, unobstrusive surveys to your site.
Check a live Demo here
npm i -S react-survey
yarn add react-survey
const fakeSurvey = {
name: "Satisfaction survey",
id: 1,
random: true,
timeBeforePopUp: 5, // in seconds
postUrl: "http://localhost:3000/surveys/1/participations",
questions: [
{
text: "Are you finding the documentation site complete?",
choices: [
{
text: "Yes",
id: 1,
},
{
text: "No",
id: 2,
},
],
multiple: false,
id: 1,
required: true,
},
{
text:
"Do you think we should make a vanilla JS version of this component?",
choices: [
{
text: "Yes",
id: 3,
},
{
text: "No",
id: 4,
},
],
multiple: false,
id: 2,
required: true,
},
{
text: "What functionnalities would you like to see next?",
choices: [
{
text: "Overidable styles",
id: 5,
},
{
text: "Deactivate localStorage (for dev)",
id: 6,
},
{
text: "Animations",
id: 7,
},
],
multiple: true,
id: 3,
required: false,
},
],
ending: {
text:
`Thank your for your answers!
You can leave you email if you would like to maybe be contacted to answer some questions and help us.
You can also write any comment you might have in the box below.`,
email: true,
freeSpeech: true,
},
messages: {
errorMessage: "You have to select an option",
welcomeMessage:
"Hello! Thanks for checking us out! If you could answer these 3 easy questions it would really mean the world to us :)",
nextMessage: "Next",
endMessage: "End",
endingMessage: "Thank you! Your answers have been recorded.",
closeMessage: "Close",
},
};
export { fakeSurvey };
import React from "react";
import ReactDOM from "react-dom";
import ReactSurvey from "react-survey";
import { fakeSurvey } from "./data";
ReactDOM.render(
<ReactSurvey data={fakeSurvey} />,
document.getElementById("root")
);
FAQs
A small but powerful component to make unobstrusive survey pup-up
We found that react-survey demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.