Skip to content

Latest commit

 

History

History
45 lines (34 loc) · 1.09 KB

reactjs.md

File metadata and controls

45 lines (34 loc) · 1.09 KB

ReactJS

my projects with examples
doc
chrome plugin

create project

npx create-react-app my-app

create component

npm install --save-dev create-react-component-folder
npx crcf myComponent

type of components

lifecycle - creation lifecycle - update

style pseudo selector

# npm install --save radium

import Radium from 'radium';
style={
   ':hover': {
   	backgroundColor:"red"
   },
   '@media (min-witdh: 480px)':{
   	width: "350px"
   }
}

export default Radium(MyComponent);

// for media - wrap root component with:
// import { StyleRoot } from 'radium';
// <StyleRoot> </StyleRoot>

NextJS ServerSideRendering