-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial FAQ #9
base: master
Are you sure you want to change the base?
Initial FAQ #9
Conversation
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
Also don't be afraid of the huge diff size, the vast majority of it is yarn.lock which you can ignore. |
There was a problem hiding this 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, { |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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 ? |
There was a problem hiding this comment.
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', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Honestly this all seems reasonable - but why this over the other react one we were looking at? |
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