Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

Add additional css class name in react app

You can pass more classes into className using template literal strings. Here's an example passing in the my-2 and mr-4 you wanted to add:

import React from "react";

import logoimg from "../../assets/images/logo.svg";
import classes from "./Logo.module.scss";

const logo = (props) => {
  return (
    <div className={`${classes.Logo} my-2 mr-4`}>
      <a href="/">
       <img src={logoimg} />
        <p>Resume Builder</p>
      </a>
    </div>
  );
};

export default logo;
Comment

PREVIOUS NEXT
Code Example
Javascript :: create method javascript 
Javascript :: react input radio button 
Javascript :: How to Use the replace() String Method in javascript 
Javascript :: autocannon npm 
Javascript :: next js link 
Javascript :: promise syntax for javascript 
Javascript :: count length of a string javascript 
Javascript :: how to replace all the string in javascript when the string is javascript variable 
Javascript :: react native build 
Javascript :: svelte wait 
Javascript :: javascript import module 
Javascript :: google sheets get ranges 
Javascript :: react native add bottom tab and drawer menu 
Javascript :: for loop react 
Javascript :: xml vs json 
Javascript :: when programmers net goes down 
Javascript :: multi key cookie js 
Javascript :: apply() js 
Javascript :: firebase get key value 
Javascript :: match characters in curly braces regex js 
Javascript :: javascript index of biggest number 
Javascript :: javascript How to print every number that is divisible by either 3 or 5, but not both 
Javascript :: file_get_contents in javascript 
Javascript :: electron iframe require is not defined 
Javascript :: Get the language of a user 
Javascript :: hash url owl carousel example 
Javascript :: mongodb populate 
Javascript :: supertest formdata 
Javascript :: jquery generate post entire page 
Javascript :: delay sleep 
ADD CONTENT
Topic
Content
Source link
Name
8+4 =