Skip to content

123vivekr/excel-play-frontend-2018

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Excel Play 2018 Website

Start dev server

npm start

Production Build

npm run build

Directory Structure

src
├── components  # all partial components
├── pages       # all top level pages (Redux tree will be connected to these)
└── utils       # any utility functions/classes

CSS

  • Try not to use scss or sass.

  • Create a separate css file for each react component and place them in the same directory. Eg.

    components
    ├── ...
    ├── my-component.js
    └── my-component.css
    
  • Try to use locally scoped css for components. Locally scoped css rules won't affect anything other than the markup inside the component.

  • To make a css file locally scoped, use the format *.modules.css for the file name. Eg.

    components
    ├── ...
    ├── my-component.js
    └── my-component.module.css # css rules will be locally scoped for my-component.js
    
  • Import css directly into your component files and let webpack do the work.

    // my-component.js
    ...
    import styles from './my-component.module.css'
    
    ...
        render(){
          // inside the render method
          return(
            ...
            <div className={styles.someclass}>
               ...
            <div>
            ...
          )
        }
    /* my-component.module.css */
    ...
    .someclass{
      ...
      color: red;
      ...
    }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 76.8%
  • HTML 18.2%
  • CSS 5.0%