Skip to content

Latest commit

 

History

History
34 lines (30 loc) · 720 Bytes

README.md

File metadata and controls

34 lines (30 loc) · 720 Bytes

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!