- "React" - Needs no introduction...
- "React Patterns" - A nice learning resource for all the patterns you'll see used across the React ecosystem
- “Real World Redux” - Talk I gave back in feb on our experience with Redux (there’s a recording linked on that page)
- “Recompose” - Is a react utility library we use
extensively which is allowing us to move towards writing dumber components with localised
containers (ie. removing api redux as a first class api)
- An extra talk on recompose by the creator here: https://www.youtube.com/watch?v=zD_judE-bXk
- Can also see how we’re writing our own Higher order components and component enhancers here:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Num modules: | |
1123 | |
Num components: | |
647 | |
Most depended on components: | |
[ { name: 'Text', usages: 568 }, | |
{ name: 'Button', usages: 160 }, | |
{ name: 'Icon', usages: 127 }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
These stats were made available from https://github.com/lystable/recon | |
Num modules parsed | |
How many modules did we explore? | |
1243 | |
--- | |
Num components |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function Component({state, increment}) { | |
return ( | |
<div> | |
{state.count} hits! | |
<button onClick={increment}>Hit me!</button> | |
</div> | |
); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"/> | |
<meta name="viewport" content="width=device-width, initial-scale=1"/> | |
<title>Webpack Bundle Analyzer</title> | |
<!-- viewer.js --> | |
<script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Text(props) { | |
return <Span color="black" {...props} /> | |
} | |
const BlueText = withProps({ | |
color: 'blue' | |
})(Text) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const testComponent = ( | |
Component: RC, | |
defaultProps? | |
: () => Object | |
= () => ({}), | |
) => { | |
return (otherProps: Object, hoc?: (RC) => RC) => { | |
// our final props for the component merged from default | |
// and per-test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const A = () => <div />; | |
const B = ({children}) => children(); | |
const C = () => <B>{() => <A />}</B>; |
I hereby claim:
- I am chrisui on github.
- I am chrisui (https://keybase.io/chrisui) on keybase.
- I have a public key ASAU3gLmS3BbBl6xAi_lMk0iFWHBN92EvlaF9DL6xhR82wo
To claim this, I am signing this object: