@4leaf.ysh/use-title

React hooks to update your document's title

Usage no npm install needed!

<script type="module">
  import 4leafYshUseTitle from 'https://cdn.skypack.dev/@4leaf.ysh/use-title';
</script>

README

@4leaf-Hooks/use-title

React Hooks to update your document's title.

installation

  • yarn

     yarn add @4leaf.ysh/use-title
    
  • npm

     npm install @4leaf.ysh/use-title
    

Usage

import React from "react";
import useTitle from "@4leaf.ysh/use-title";

function App() {
  useTitle("Welcome");
  return <h1>Welcome</h1>;
}

Arguments

Argument Type Description Required
title string The title you want to use on your document YES