CREATION OF REACT PROJECT
>npx create-react-app name-of-the-app
GET REACT VERSION
> npm view react version
COMPILATE AND RUN THE PROJECT
>npm start
if we want to run it in https :
> ($env:HTTPS = "true") -and (npm start)
COMPONENTS
>Soit par class
> class myComponentName extends React.Component{
constructor(props){
super(props);
this.state={
value:null,
};
}
render(){
return
}
}
>Soit par fonction
>function Square(props) {
return (
);
}