Click here to Skip to main content
15,909,498 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: Not sure where my mistake is. . . I want the two texts to turn blue and yellow. Pin
Richard Deeming30-Sep-19 10:05
mveRichard Deeming30-Sep-19 10:05 
QuestionImporting css classes into React Component Pin
simpledeveloper26-Sep-19 10:47
simpledeveloper26-Sep-19 10:47 
Hi all,

I have a
<div class="header-top-outer container-fluid">
, i have imported the css files where these classes exist into my project with a statement
import style from '../css/styles.css'


In my react component when I am trying to reference this div as below in my React component:
<div className={style.footer-outer + ' ' + style.container-fluid}>

it is throwing a compiled error for me:
./src/components/FooterMenu.jsx
  Line 25:  'outer' is not defined  no-undef
  Line 25:  'fluid' is not defined  no-undef
  Line 26:  'outer' is not defined  no-undef

Search for the keywords to learn more about each error.

What is the option to avoid these errors? Like what is the way I can reference css classes which have - in them using import reference?

i have tried the following way also, but it didn't work:
<div className={'${style.footer-outer} ${style.container-fluid}'} >


modified 26-Sep-19 17:11pm.

AnswerRe: Importing css classes into React Component Pin
Richard Deeming27-Sep-19 1:35
mveRichard Deeming27-Sep-19 1:35 
GeneralRe: Importing css classes into React Component Pin
simpledeveloper27-Sep-19 6:09
simpledeveloper27-Sep-19 6:09 
GeneralRe: Importing css classes into React Component Pin
Wishe199129-Sep-19 23:25
Wishe199129-Sep-19 23:25 
QuestionTrying to convert a jQuery MVC app into React Web Api App Pin
simpledeveloper26-Sep-19 7:02
simpledeveloper26-Sep-19 7:02 
AnswerRe: Trying to convert a jQuery MVC app into React Web Api App Pin
jkirkerx26-Sep-19 9:18
professionaljkirkerx26-Sep-19 9:18 
GeneralRe: Trying to convert a jQuery MVC app into React Web Api App Pin
simpledeveloper26-Sep-19 9:59
simpledeveloper26-Sep-19 9:59 
GeneralRe: Trying to convert a jQuery MVC app into React Web Api App Pin
simpledeveloper26-Sep-19 10:58
simpledeveloper26-Sep-19 10:58 
AnswerRe: Trying to convert a jQuery MVC app into React Web Api App Pin
Wishe199129-Sep-19 23:20
Wishe199129-Sep-19 23:20 
QuestionHow to call Fetch url using HTML ? Pin
Abdalla Ben Omran25-Sep-19 1:53
Abdalla Ben Omran25-Sep-19 1:53 
AnswerRe: How to call Fetch url using HTML ? Pin
Richard Deeming25-Sep-19 2:48
mveRichard Deeming25-Sep-19 2:48 
AnswerRe: How to call Fetch url using HTML ? Pin
Wishe199129-Sep-19 23:26
Wishe199129-Sep-19 23:26 
QuestionGrid Pin
RajaMohammed.A23-Sep-19 20:27
RajaMohammed.A23-Sep-19 20:27 
AnswerRe: Grid Pin
Richard MacCutchan23-Sep-19 21:02
mveRichard MacCutchan23-Sep-19 21:02 
AnswerRe: Grid Pin
ZurdoDev26-Sep-19 10:21
professionalZurdoDev26-Sep-19 10:21 
AnswerRe: Grid Pin
Wishe199129-Sep-19 23:24
Wishe199129-Sep-19 23:24 
QuestionCreating a JScript to add the filename to a document in PDF-Exchange Editor. Pin
MisterBobTheTomato18-Sep-19 2:32
MisterBobTheTomato18-Sep-19 2:32 
AnswerRe: Creating a JScript to add the filename to a document in PDF-Exchange Editor. Pin
Wishe199129-Sep-19 23:24
Wishe199129-Sep-19 23:24 
GeneralRe: Creating a JScript to add the filename to a document in PDF-Exchange Editor. Pin
MisterBobTheTomato5-Oct-19 3:00
MisterBobTheTomato5-Oct-19 3:00 
QuestionWhat is J Query in Javascript Pin
Jack Smiths13-Sep-19 6:49
Jack Smiths13-Sep-19 6:49 
AnswerRe: What is J Query in Javascript Pin
Richard Deeming13-Sep-19 7:01
mveRichard Deeming13-Sep-19 7:01 
GeneralRe: What is J Query in Javascript Pin
microrama0120-Sep-19 2:11
microrama0120-Sep-19 2:11 
AnswerRe: What is J Query in Javascript Pin
ZurdoDev16-Sep-19 4:00
professionalZurdoDev16-Sep-19 4:00 
AnswerRe: What is J Query in Javascript Pin
Wishe199129-Sep-19 23:22
Wishe199129-Sep-19 23:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.