Search
⌘K
    to navigateEnterto select Escto close

    Empty line after the import statements

    Let's start with code.

    1import React, { useState } from "react";
    2import { Button } from "nitroui";
    3import classNames from "classnames";
    4function Dropdown({ options, onOptionSelect, chapter, lessonId }) {
    5}

    Readability of the code mentioned above can be greatly enhanced by having an empty line after all the import statements.

    1import React, { useState } from "react";
    2import { Button } from "nitroui";
    3import classNames from "classnames";
    4
    5function Dropdown({ options, onOptionSelect, chapter, lessonId }) {
    6}
    Previous
    Next