Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ddapac-react

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ddapac-react - npm Package Compare versions

Comparing version 1.1.10 to 1.1.11

boilerplate/src/routes/Home/Home.styles.ts

2

boilerplate/.prettierrc.js

@@ -17,5 +17,5 @@ module.exports = {

//Line length before wrapping
printWidth: 100,
printWidth: 120,
//Avoid parenthesis around a sole arrow function parem
arrowParens: "avoid",
};
import { css } from '@emotion/core';
import ModernNormalise from 'utils/ModernNormalize';
export default css`
body {
margin: 0;
padding: 0;
}
${ModernNormalise}
/* Continue styling like normal */
`;
import { AppRoute } from 'typings/AppRoute';
import Home from './routes/Home';
import Home from './routes/Home/Home';

@@ -4,0 +4,0 @@ const routes: ObjectMap<AppRoute> = {

export default (name: string): string => {
return `import React from 'react';
return `import React, { useState } from 'react';
//import { useStateValue } from 'StateProvider';
import styles from './${name}.styles';
const ${name} = (): React.ReactElement => {
interface ${name}Props {
title?: string
}
const ${name}: React.FC<${name}Props> = ({ title = 'This is a fresh boi' }) => {
//const [globaleState, setGlobalState] = useStateValue();
//const [localState, setLocalState] = useState(null);
//const [showTitle,] = useState<boolean>(true);
return (
<div css={styles}>
<p className="freshBoi">This is a fresh boi</p>
{showTitle && (
<p className="freshBoi">{title}</p>
)}
</div>

@@ -15,0 +21,0 @@ );

{
"name": "ddapac-react",
"version": "1.1.10",
"version": "1.1.11",
"description": "An npm installer for Deloitte Digital's React Boilerplate",

@@ -5,0 +5,0 @@ "files": [

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc