Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

inline style in nextjs

// pages/index.js
function Home() {
  return (
    <div className="container">
      <h1>Hello Next.js</h1>
      <p>Let's explore different ways to style Next.js apps</p>
      <style jsx>{`
        .container {
          margin: 50px;
        }
        p {
          color: blue;
        }
      `}</style>
    </div>
  )
}

export default Home
Comment

PREVIOUS NEXT
Code Example
Javascript :: js change button text 
Javascript :: getters in nuxt vuex acccessing 
Javascript :: angular cli create component with module 
Javascript :: node wrangler preview 
Javascript :: ascending val in array using js 
Javascript :: ffmpeg convert mp4 to avi 
Javascript :: router.query is undefined in first render 
Javascript :: remove element from an array 
Javascript :: how to get timestamp in javascript of a date object 
Javascript :: js window width change 
Javascript :: Use multiple conditional operators in the checkSign function to check if a number is positive, negative or zero. The function should return "positive", "negative" or "zero". 
Javascript :: call javascript function after div load 
Javascript :: jq object to dom object convert 
Javascript :: moment use in angular 
Javascript :: how to create public folder in node js 
Javascript :: javascript submit a form with id 
Javascript :: toggle bollean value in js 
Javascript :: string to in js 
Javascript :: dayjs timezone 
Javascript :: componentdidupdate 
Javascript :: javascript hide address bar mobile 
Javascript :: find only duplicate data javascript object 
Javascript :: loop dictionary with key and value javascript 
Javascript :: how to reload a module in node.js 
Javascript :: change href with jquery 
Javascript :: find biggest word in the string 
Javascript :: how to generate random rgb color number in javascript 
Javascript :: express send 401 response 
Javascript :: snap to grid 
Javascript :: js int to alphabet 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =