Skip to content

yanai101/react-sass-typescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-scss-typescript!

Hi! this is a boilerplate for react app with typescript and scss - you can config in the webpack if you what to use scss nodule or not...

Files

the typescript.config.d.js file - is for typescript - for scss modules - otherwise if you import something like that :

import cls from './app.scss' 

you get this error :

Cannot find module './app.scss'

scss module example :

import * as React from 'react';
import cls from './app.scss';
const App =()=> (
	<div className= {cls.App}>
		<h2>hallo all <h2/>
	</div>
)

and in the app.scss

.App{
	color:red
}

to run the example app...

just run mpn\yarn install and start ... enjoy!

About

configuration for react with typescript and scss - webpack v.3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published