preferDirectHookImportImport `{{hookName}}` directly instead of calling `React.{{hookName}}`.small-rules/prefer-direct-hook-importsPrefer importing React hooks directly instead of calling them via the React namespace.
preferDirectHookImportImport `{{hookName}}` directly instead of calling `React.{{hookName}}`.This rule accepts one options object after the severity.
import React from "@rbxts/react";
const [state, setState] = React.useState(false);import { useState } from "@rbxts/react";
const [state, setState] = useState(false);