score:0
i just solved it using head from 'next/head'. i just put:
<head> <title>{title}</title> </head>
inside <navlink>
, not sure if that's correct but it works.
import link from 'next/link';
import head from 'next/head';
const title = 'title here';
const header = () => (
<container>
<div1>
<link href="/">
<a style={{ display: "flex", alignitems: "center", color: "white", marginbottom: "20px"}}>
<dicssdeck size="3rem" /> <span>portfolio</span>
</a>
</link>
</div1>
<div2>
<li>
<link href=".#projects" title={title}>
<navlink>projects
<head>
<title>{title}</title>
</head>
</navlink>
</link>
</li>
<li>
<link href=".#tech">
<navlink>technologies
<head>
<title>{title}</title>
</head>
</navlink>
</link>
</li>
<li>
..............
..............
Source: stackoverflow.com
Related Query
- How can I get React helmets to work with a # href?
- How Can I Get Form/Submit To Work with ReactStrap in a React functional component?
- How can I get my product page to work on refresh with React -->Navigate?
- How can I make React Portal work with React Hook?
- How can I get webpack-dev-server to stop downloading incorrect chunks on content change with React lazy/Suspense code splitting?
- How to get React to work with Grunt and Babel?
- How can I get React styleguidist to install correctly and get past the peer Dependency issues with react-simple-code-editor: React 16 & 17?
- How to get Emotion styled component in a React project to work with TypeScript?
- How i can get suspense to work on react 18?
- How can I get Font Awesome 5 to work with React?
- How can I get a full working example with React 0.14 and Typescript 1.6.2 and Rails 4.2
- How I can get post values in edit with React/Redux form in React
- How can I get pagination work on Meteor 1.5.2 with react?
- How can I get the right data from database with react
- How can click on button to get one of components with react
- How can I get URI from ApexCharts with React Js
- How can I get combining from react beautiful dnd to work on my items?
- How can Tailwind/typography work well with markdown-it in a React project?
- How can i get setState to work in an event handler in a functional React component
- How to get Google Analytics to work with React
- How can I get localStorage to work with ReactJS?
- How to get onClick in React to work on a single element with multiple siblings?
- How to get the simplest Material UI Select to work with React and Typescript?
- How do I get type checking to work with React forwardRef
- how can i get proper type infer when useing union type with optional property as React props type
- How to get React setupProxy to work correctly with express.js
- How to get React-css-modules to work with external React UI libraries
- How to get promises to work in IE10 with react
- How do I get React to work with Babel and Gulp?
- How can I get user displaynames who posted comments with Firestore v9 in React
More Query from same tag
- I have a problem with the state.map in react.js not showing data
- How can I detect browser back button in react class component
- How to test a component that renders children as props in enzyme
- Invoke a function inside a React stateless component
- React-Redux - How to set fields inside state of application?
- React Function component setting state variable V/s using local variable
- React Hook useState Is Returning Undefined
- Can't fixed too many re render issue in react hooks
- How to pass a application variables through window object to console using reactjs?
- Dispatch action error, cannot read props
- Draft-JS Mention Plugin - Change Mentions Object K/V
- how to obtain scroll to view inside a div
- Create JSON body dynamically and call API in React JS
- Accessing cookies from React SSR
- React-Select component closeMenuOnSelect={false} still closing
- display an image in react based on a response
- Add a default domain to the email being registered
- how to reload the page after call handleDelete but it stays on the current page,not reload to the homepage, i want stay on the current page
- fluent ui - How to display/overlay a Spinner component in a TextField where iconProps usually renders the icon?
- react-redux useSelector hook disallows passing props directly to the selector
- React Forms : How to make input data as list objects with same input name?
- TypeError: Cannot read property 'handleSubmit' of undefined
- React Native expo : how to put link to Youtube video
- RTCRecorder: TypeError Recorder is not a constructor
- Dispatch is not a function - React Testing Library with React Redux Hooks
- React router dom is working for some component but not working for another component
- React + Redux - wait for action to end?
- Can I register click-listener after state transition?
- Make VS2019 use Yarn instead of NPM
- Uncaught (in promise) Error: Network error: Unexpected token < in JSON at position 3