5 comments found.
Are you plan HTML version of this template?
Do you have html version of this template?
i installed npm and python3 when i run the npm start in terminal i get this.
Line 10: 'React' must be in scope when using JSX react/react-in-jsx-scope
You can eliminate this error by importing react on the very first line of the JSX file in which you’re getting an error.
You can use this statement to import React.import React, { Component } from 'react'
It worked thanks!✅
How to i redirect to external url in nav bar ?
{
title:'About',
href:'/about'
},
To
{
title:'About',
href:'https://google.com'
},
i get this it not redirecting to https://google.com
http://localhost:3000/https://google.com
It’s mentioned in documentation. In order to redirect to external link you have to set anchor true.
You can do this by following this code.
{
anchor: true,
title: 'About',
href: 'https://google.com'
}
For further directions visit: https://stact-docs.netlify.app/#/navbar
what about projects page?
{
category: 'design',
text: 'How Deko manages to scale using Stact',
imgUrl: 'assets/project2.png',
color: "#2D7EF8",
link: 'https://google.com'
},
same result as navbar
To use an external link with internal components, you have to modify the component.
Go to
src > component > peojectCards > index.jsxand replace
<Link to={e.link}></Link> with <a href="{e.link}"></a>
(Ignore the commas before and after the href value.)
Congratulations, best of luck with sales 
Thank you