Skip to content

Instantly share code, notes, and snippets.

@nupurndas
nupurndas / app.js
Last active September 11, 2018 13:23
TypeError: Cannot read property 'object' of undefined ./src/components/App.js C:/Project/reduxreactcory/src/components/App.js:16 13 | } 14 | 15 | App.Proptypes = { > 16 | children: Proptypes.object.isRequired 17 | }; 18 | 19 | export default App;
import React, { Component , Proptypes } from 'react';
import './App.css';
class App extends Component {
constructor(props)
{
super(props);
console.log(this.props.data);
}
@nupurndas
nupurndas / authorquiz.js
Created August 29, 2018 04:23
onclick not working
import React, { Component } from 'react';
import './App.css';
import './bootstrap.min.css'
function Hero()
{
return( <div className="row">
<div className ="jumbotron col-10 offset-1">
<h1> Auther Quiz </h1>
<p> Select the book written by the auther shown </p>