August 2017
Beginner
374 pages
10h 41m
English
Our Filter component takes a name and an onClick function, which will be called when the link is clicked on.
Create a src/components/Filter.jsx file, with the following contents:
import React from 'react'
const Filter = ({ name, onClick }) =>
<a href="javascript:void(0)" onClick={onClick}>{name}</a>
export default Filter
Read now
Unlock full access