import React , { Component } from 'react'; import { getImageUrl } from 'educoder'; import { Link } from 'react-router-dom'; import '../css/index.css' import './list.css'; import img_parise from '../Images/parise.png'; class IndexItem extends Component{ // constructor(props){ // super(props); // } TurnToDetail=(login,url)=>{ this.props.history.push({ pathname:url, state:login }) } render(){ const { projects } = this.props; // item.author.login const renderList = ( projects && projects.length >0 ? projects.map((item,key)=>{ return(
{item.description}
{/* { item.forked_count ? { item.forked_count}:"" } */}