links in react code example
Example 1: how to add links in react js
import React from 'react';
import { Link } from 'react-router';
class List extends React.Component {
render() {
return (
Please choose a repository from the list below.
- React
);
}
}
export default List;
Example 2: link tag react
{user.name}
// becomes one of these depending on your History and if the route is
// active
Michael
Michael
// change the activeClassName
{user.name}
// change style when link is active
Users