skip to Main Content

Link to another page from App page not working – Reactjs

Index.js import React from 'react'; import ReactDOM from 'react-dom/client'; import './index.css'; import App from './App'; const root = ReactDOM.createRoot(document.getElementById('App')); root.render( <React.StrictMode> <App /> </React.StrictMode> ); App.js import './App.css' import Release from './components/Release' import { BrowserRouter as Router, Routes, Route, NavLink,…

VIEW QUESTION

Read a variable from tsx to scss file – Reactjs

I need to make a custom component in stencil where the color is dynamic. Any way to take the value of variable from tsx and access it on scss file. The code is below. https://stackblitz.com/edit/stenicil-starter-component-oeyzhz?file=src%2Fcomponents%2Fmy-component%2Fmy-component.tsx&file=src%2Fcomponents%2Fmy-component%2Fmy-component.css

VIEW QUESTION
Back To Top
Search