Skip to content

Finish transition of reset-password.html to React component #77

@nbkhope

Description

@nbkhope

I think the last piece was setting a specific <title> under the head.

For now we can simply do it as a side effect like this, inside the component function, before render:

React.useEffect(function() {
  document.title = 'The Desired Title That will go under Head That is the Tab Title in Browser';
}, []);

Remember useEffect is used to call a function immediately after a render. When you pass empty array as second argument, it means only run after first render, but no more.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions