Skip to content

Instantly share code, notes, and snippets.

View tarang9211's full-sized avatar
🦖
Focusing

Tarang Hirani tarang9211

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