| Conditions | 1 |
| Total Lines | 69 |
| Code Lines | 69 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.
For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.
Commonly applied refactorings include:
If many parameters/temporary variables are present:
| 1 | import React, { Component } from "react" |
||
| 44 | renderContactTable = () => ( |
||
| 45 | <table className="page-footer__contact-details"> |
||
| 46 | <tbody> |
||
| 47 | <tr> |
||
| 48 | <th className="page-footer__contact-details__label">KCVV Elewijt</th> |
||
| 49 | <td className="page-footer__contact-details__value"> |
||
| 50 | Driesstraat 30, 1982 Elewijt |
||
| 51 | </td> |
||
| 52 | </tr> |
||
| 53 | <tr> |
||
| 54 | <th className="page-footer__contact-details__label">Voorzitter</th> |
||
| 55 | <td className="page-footer__contact-details__value">Rudy Bautmans</td> |
||
| 56 | </tr> |
||
| 57 | <tr> |
||
| 58 | <th className="page-footer__contact-details__label">GC</th> |
||
| 59 | <td className="page-footer__contact-details__value"> |
||
| 60 | <a href="mailto:[email protected]" className={"rich-link"}> |
||
| 61 | John De Ron |
||
| 62 | </a> |
||
| 63 | </td> |
||
| 64 | </tr> |
||
| 65 | <tr> |
||
| 66 | <th className="page-footer__contact-details__label"> |
||
| 67 | Algemeen contact |
||
| 68 | </th> |
||
| 69 | <td className="page-footer__contact-details__value"> |
||
| 70 | <a href="mailto:[email protected]" className={"rich-link"}> |
||
| 71 | [email protected] |
||
| 72 | </a> |
||
| 73 | </td> |
||
| 74 | </tr> |
||
| 75 | <tr> |
||
| 76 | <th className="page-footer__contact-details__label">Jeugdwerking</th> |
||
| 77 | <td className="page-footer__contact-details__value"> |
||
| 78 | <a href="mailto:[email protected]" className={"rich-link"}> |
||
| 79 | [email protected] |
||
| 80 | </a> |
||
| 81 | </td> |
||
| 82 | </tr> |
||
| 83 | <tr> |
||
| 84 | <th className="page-footer__contact-details__label"> |
||
| 85 | Verhuur kantine |
||
| 86 | </th> |
||
| 87 | <td className="page-footer__contact-details__value"> |
||
| 88 | <a href="mailto:[email protected]" className={"rich-link"}> |
||
| 89 | Ann Walgraef |
||
| 90 | </a> |
||
| 91 | </td> |
||
| 92 | </tr> |
||
| 93 | <tr> |
||
| 94 | <th className="page-footer__contact-details__label">Website</th> |
||
| 95 | <td className="page-footer__contact-details__value"> |
||
| 96 | <a href="mailto:[email protected]" className={"rich-link"}> |
||
| 97 | Kevin Van Ransbeeck |
||
| 98 | </a> |
||
| 99 | </td> |
||
| 100 | </tr> |
||
| 101 | <tr> |
||
| 102 | <th className="page-footer__contact-details__label"> |
||
| 103 | Privacy & cookies |
||
| 104 | </th> |
||
| 105 | <td className="page-footer__contact-details__value"> |
||
| 106 | <a href="/privacy" className={"rich-link"}> |
||
| 107 | Privacyverklaring |
||
| 108 | </a> |
||
| 109 | </td> |
||
| 110 | </tr> |
||
| 111 | </tbody> |
||
| 112 | </table> |
||
| 113 | ) |
||
| 141 |