Skip to content

Commit c591073

Browse files
committed
Organize links
1 parent 9e381dd commit c591073

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Using npm:
2424
npm install react-checkbox-tree --save
2525
```
2626

27-
> **Note** – By default, this library makes use of [Font Awesome](https://fontawesome.com) styles and expects them to be loaded in the browser.
27+
> **Note** – By default, this library makes use of [Font Awesome][font-awesome] styles and expects them to be loaded in the browser.
2828
2929
### Include CSS
3030

@@ -42,7 +42,7 @@ import 'react-checkbox-tree/lib/react-checkbox-tree.css';
4242

4343
### Render Component
4444

45-
Below is a minimal example using [state hooks](https://reactjs.org/docs/hooks-state.html). Note that `CheckboxTree` is a [controlled](https://facebook.github.io/react/docs/forms.html#controlled-components) component, so you must update its `checked` and `expanded` properties whenever a change occurs.
45+
Below is a minimal example using [state hooks][docs-state-hooks]. Note that `CheckboxTree` is a [controlled][docs-controlled] component, so you must update its `checked` and `expanded` properties whenever a change occurs.
4646

4747
``` jsx
4848
import React, { useState } from 'react';
@@ -106,7 +106,7 @@ To change the rendered icons entirely, simply pass in the `icons` property and o
106106
/>
107107
```
108108

109-
If you are using the [`react-fontawesome`](https://github.com/FortAwesome/react-fontawesome) library, you can also directly substitute those icons:
109+
If you are using the [`react-fontawesome`][react-fontawesome] library, you can also directly substitute those icons:
110110

111111
``` jsx
112112
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
@@ -192,3 +192,8 @@ Individual nodes within the `nodes` property can have the following structure:
192192
| `icon` | mixed | A custom icon for the node. | `null` |
193193
| `showCheckbox` | bool | Whether the node should show a checkbox. | `true` |
194194
| `title` | string | A custom `title` attribute for the node. | `null` |
195+
196+
[docs-controlled]: https://facebook.github.io/react/docs/forms.html#controlled-components
197+
[docs-state-hooks]: https://reactjs.org/docs/hooks-state.html
198+
[font-awesome]: https://fontawesome.com
199+
[react-fontawesome]: https://github.com/FortAwesome/react-fontawesome

0 commit comments

Comments
 (0)