Skip to content

Conversation

@eyelidlessness
Copy link
Contributor

This is built with Phenomic, which is based on React/redux. It was pretty simple to put together, the majority of the time I spent was yanking out a ton of unnecessary stuff

This doesn't resolve the warnings in this codebase, because (presumably) underlying libs are also referring to React.PropTypes
Removes ALMOST ALL THE THINGS from the default project
@eyelidlessness
Copy link
Contributor Author

Also don't be afraid of the huge diff size, the vast majority of it is yarn.lock which you can ignore.

Copy link

@bwreilly bwreilly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I insist all test FAQ data comes in the various misspellings of pregnant.



const FAQs = (props, { collection }) => {
const faqs = enhanceCollection(collection, {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

};

FAQs.contextTypes = {
collection: PropTypes.array.isRequired,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, in favor of PropTypes for this thing rather than doing a bunch of work trying to make it TypeScript or just going with nothing?


const PagesList = ({ pages }) => (
<div>
{pages.length ?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ternary operator is gross as heck but I'm not sure what parts of this you wrote.

white: '#fff',
grey: {
darkest: '#454545',
darker: '#666',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bwreilly
Copy link

Honestly this all seems reasonable - but why this over the other react one we were looking at?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants