| Conditions | 1 |
| Total Lines | 61 |
| Code Lines | 61 |
| 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" |
||
| 39 | renderContactTable = () => ( |
||
| 40 | <table className="page-footer__contact-details"> |
||
| 41 | <tbody> |
||
| 42 | <tr> |
||
| 43 | <th className="page-footer__contact-details__label">KCVV Elewijt</th> |
||
| 44 | <td className="page-footer__contact-details__value">Driesstraat 30, 1982 Elewijt</td> |
||
| 45 | </tr> |
||
| 46 | <tr> |
||
| 47 | <th className="page-footer__contact-details__label">Voorzitter</th> |
||
| 48 | <td className="page-footer__contact-details__value">Rudy Bautmans</td> |
||
| 49 | </tr> |
||
| 50 | <tr> |
||
| 51 | <th className="page-footer__contact-details__label">GC</th> |
||
| 52 | <td className="page-footer__contact-details__value"> |
||
| 53 | <a href="mailto:[email protected]" className={`rich-link`}> |
||
| 54 | John De Ron |
||
| 55 | </a> |
||
| 56 | </td> |
||
| 57 | </tr> |
||
| 58 | <tr> |
||
| 59 | <th className="page-footer__contact-details__label">Algemeen contact</th> |
||
| 60 | <td className="page-footer__contact-details__value"> |
||
| 61 | <a href="mailto:[email protected]" className={`rich-link`}> |
||
| 62 | [email protected] |
||
| 63 | </a> |
||
| 64 | </td> |
||
| 65 | </tr> |
||
| 66 | <tr> |
||
| 67 | <th className="page-footer__contact-details__label">Jeugdwerking</th> |
||
| 68 | <td className="page-footer__contact-details__value"> |
||
| 69 | <a href="mailto:[email protected]" className={`rich-link`}> |
||
| 70 | [email protected] |
||
| 71 | </a> |
||
| 72 | </td> |
||
| 73 | </tr> |
||
| 74 | <tr> |
||
| 75 | <th className="page-footer__contact-details__label">Verhuur kantine</th> |
||
| 76 | <td className="page-footer__contact-details__value"> |
||
| 77 | <a href="mailto:[email protected]" className={`rich-link`}> |
||
| 78 | Ann Walgraef |
||
| 79 | </a> |
||
| 80 | </td> |
||
| 81 | </tr> |
||
| 82 | <tr> |
||
| 83 | <th className="page-footer__contact-details__label">Website</th> |
||
| 84 | <td className="page-footer__contact-details__value"> |
||
| 85 | <a href="mailto:[email protected]" className={`rich-link`}> |
||
| 86 | Kevin Van Ransbeeck |
||
| 87 | </a> |
||
| 88 | </td> |
||
| 89 | </tr> |
||
| 90 | <tr> |
||
| 91 | <th className="page-footer__contact-details__label">Privacy & cookies</th> |
||
| 92 | <td className="page-footer__contact-details__value"> |
||
| 93 | <a href="/privacy" className={`rich-link`}> |
||
| 94 | Privacyverklaring |
||
| 95 | </a> |
||
| 96 | </td> |
||
| 97 | </tr> |
||
| 98 | </tbody> |
||
| 99 | </table> |
||
| 100 | ) |
||
| 126 |