New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-simple-page-title

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-simple-page-title

Change page titles declaratively in React

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
decreased by-25%
Maintainers
1
Weekly downloads
 
Created
Source

react-simple-page-title

Change the document.title declaratively inside your React app - without any dependencies.

Why?

I've wanted to simply change my page title dynamically in the SPA I was developing without any unnesesary features that could increase the bundle size.

⚠ This library doesn't support SSR - for alternatives see Alternatives

Install

npm

npm install react-simple-page-title

yarn

yarn add react-simple-page-title

Usage

Component

import { PageTitle } from 'react-simple-page-title';

const MyComponent = () => {
  return (
    <PageTitle title="Use this string as title of the page">
  )
}

Hook

import { usePageTitle } from 'react-simple-page-title';

const MyComponent = () => {
  usePageTitle("Use this string as title of the page");

  return (
    // ...
  )
}

Alternatives

This library doesn't support SSR. For more advanced alternative that supports SSR check out react-helmet or react-head.

If you're using a framework use a solution that was made for your framework:

Keywords

FAQs

Package last updated on 09 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc