38
loading...
This website collects cookies to deliver better user experience
import React from 'react';
import styled from 'styled-components';
import Profile from '../views/Profile';
import { useAppSelector } from '../../redux/app/hooks;
import React from 'react';
import styled from 'styled-components';
import Profile from '../views/Profile';
import { useAppSelector } from '../../redux/app/hooks;
const ID = 10ad4J;
const MAXVALUE = 10;
import React from 'react';
import styled from 'styled-components';
import Profile from '../views/Profile';
import { useAppSelector } from '../../redux/app/hooks;
const ID = 10ad4J;
const MAXVALUE = 10;
const Container = styled.div`
background-color: #ffffff;
`;
import React, { useState } from 'react';
import styled from 'styled-components';
import Profile from '../views/Profile';
import { useAppSelector } from '../../redux/app/hooks;
const ID = 10ad4J;
const MAXVALUE = 100;
const Container = styled.div`
background-color: #ffffff;
`;
const AComponent = () => {
const isUserLoggedIn = useAppSelector(state => state.user.loggedIn);
return (
<Container>
<Profile auth={isUserLoggedIn ? ID : false} />
</Container>
);
};
// Spaces inside brackets, outside of JSX.
import React, { useState } from 'react';
import styled from 'styled-components';
import Profile from '../views/Profile';
import { useAppSelector } from '../../redux/app/hooks;
const ID = 10ad4J;
const MAXVALUE = 10;
const Container = styled.div`
background-color: #ffffff;
`;
// Single props don't get parens.
const AComponent = props => {
const [user, setUser] = useState({});
return (
<Container>
{// No spaces in brackets inside JSX}
<NavBar loggedIn={user}/>
</Container>
);
};
export default AComponent;
Root
|_.ideconfigfolder
|_node_modules
|_public
manifest.json
index.json
robots.txt
...other files including images and what not
|_src
|_assets
|_components
|_utils
|_redux
|_styles
App.jsx
index.jsx
...global project configs and ignores.