Skip to content

Instantly share code, notes, and snippets.

Avatar
🐢
Focusing

Tarang Hirani tarang9211

🐢
Focusing
View GitHub Profile
View app-partial.js
import React, { Component } from 'react';
class App extends Component {
render() {
return (
<div className='App'>
<form>
<button type="submit">Submit</button>
</form>
View app.js
import React, { Component } from 'react';
class App extends Component {
state = {
questions: this.props.questions,
showState: false,
};
handleChange = id => e => {
@tarang9211
tarang9211 / questions.js
Created Sep 10, 2018
Data for input fields
View questions.js
const questions = [
{
id: 0,
question: "What is your name?",
value: ""
},
{
id: 1,
question: "What is your dog's name?",
value: ""