{"size": 335, "ext": "js", "max_stars_repo_path": "src/components/ActionLink.js", "max_stars_repo_name": "mnpenner/pure-react-datatable", "max_stars_repo_stars_event_min_datetime": "2021-01-26T06:58:53.000Z", "max_stars_repo_stars_event_max_datetime": "2021-01-26T06:58:53.000Z", "max_issues_repo_path": "src/components/ActionLink.js", "max_issues_repo_name": "mnpenner/pure-react-datatable", "max_issues_repo_issues_event_min_datetime": "2020-06-29T22:19:03.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-27T07:28:17.000Z", "max_forks_repo_path": "src/components/ActionLink.js", "max_forks_repo_name": "mnpenner/pure-react-datatable", "max_forks_repo_forks_event_min_datetime": "2020-09-10T18:42:44.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-13T23:51:03.000Z"}
{"max_stars_count": 1, "max_issues_count": 9, "max_forks_count": 3, "avg_line_length": 22.3333333333, "max_line_length": 56, "alphanum_fraction": 0.4805970149}
import React from 'react';

export default function ActionLink({onClick,...props}) {
    if(onClick) {
        props.onClick = ev => {
            ev.preventDefault();
            onClick(ev);
        }
    } else {
        props.onClick = ev => {
            ev.preventDefault();
        }
    }
    return <a href="#" {...props} />
}