Skip to content

Instantly share code, notes, and snippets.

@lior-amsalem
Last active January 25, 2020 20:47
Show Gist options
  • Save lior-amsalem/54fc8d3286d267fbd147cd331ac118ab to your computer and use it in GitHub Desktop.
Save lior-amsalem/54fc8d3286d267fbd147cd331ac118ab to your computer and use it in GitHub Desktop.
Initial File of our dynamically generated inputs - part 1
import React from 'react';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faMinusCircle } from '@fortawesome/free-solid-svg-icons'
import './cat-list.css';
class CatList extends React.Component {
renderList() {
return null
}
render() {
return (
<div className="row custom-headers Rtable Rtable--2cols">
<div className="Rtable-cell">Cat Name</div>
<div className="Rtable-cell">Cat Age</div>
{this.renderList()}
</div>
);
}
}
export default CatList;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment