0
nesecito ayuda con react
tengo este proyecto en react https://stackblitz.com/edit/react-state-counter-example-8zmcpr?file=index.html y e tratado de embeber codigo css que esta en una carpeta css y no hace el import por lo que no ejecuta los archivos css me prodrian ayudar
10 Respuestas
+ 2
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title> Page Title ✍️</title>
<link href="./style.css" rel="stylesheet">
<link href="./css/cards.css" rel="stylesheet">
<link href="./css/exam.css" rel="stylesheet">
<link href="./css/fonts.css" rel="stylesheet">
<link href="./css/footer.css" rel="stylesheet">
<link href="./css/header.css" rel="stylesheet">
<link href="./css/layers.css" rel="stylesheet">
<link href="./css/loader.css" rel="stylesheet">
<link href="./css/main.css" rel="stylesheet">
<link href="./css/side-nav.css" rel="stylesheet">
<link href="./css/video-playlist.css" rel="stylesheet">
</head>
<body>
etc ..
</body>
+ 2
add script ./index.js
in the <head> section of an HTML page
+ 2
HTML script src Attribute
https://www.w3schools.com/tags/att_script_src.asp
+ 2
there is another way
put @import "./css/cards.css";
in style.css file
+ 2
The beginners
GUIDE TO REACT & REDUX
The Complete React Web
Development Course (with Redux)
https://usermanual.wiki/Document/Beginners20Guide20to20React.603117965.pdf
+ 1
Were I embebing de code css ???
In the index.js??
+ 1
Above
</head> tag
+ 1
Yes but in the index.js
+ 1
I tell you how i do in react bucause i know how i do in html