Skip to content
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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Initial FAQ #9

wants to merge 6 commits into from

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.

2 participants