Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Update to React 16.2.0 for Fragments, Replace Unnecessary <div /> on HOC.#292

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
notadamking wants to merge3 commits intofullstackreact:master
base:master
Choose a base branch
Loading
fromnotadamking:master

Conversation

notadamking
Copy link

@notadamkingnotadamking commentedDec 4, 2018
edited
Loading

Problem

The<div /> surrounding the<WrappedComponent /> causes styles to render incorrectly on the wrapped component.

Fix

Replace the<div /> with<React.Fragment /> to prevent stylistic changes.

I also removed unused lines of code from the GoogleApiComponent, and then ranmake build to update the dist folder.

> google-maps-react@2.0.3 prepublish /Users/adam/Desktop/Projects/google-maps-react> ./scripts/prepublish.sh=> Transpiling...src/GoogleApiComponent.js -> dist/GoogleApiComponent.jssrc/components/Circle.js -> dist/components/Circle.jssrc/components/HeatMap.js -> dist/components/HeatMap.jssrc/components/InfoWindow.js -> dist/components/InfoWindow.jssrc/components/Marker.js -> dist/components/Marker.jssrc/components/Polygon.js -> dist/components/Polygon.jssrc/components/Polyline.js -> dist/components/Polyline.jssrc/index.js -> dist/index.jssrc/lib/GoogleApi.js -> dist/lib/GoogleApi.jssrc/lib/ScriptCache.js -> dist/lib/ScriptCache.jssrc/lib/String.js -> dist/lib/String.jssrc/lib/arePathsEqual.js -> dist/lib/arePathsEqual.jssrc/lib/cancelablePromise.js -> dist/lib/cancelablePromise.jssrc/lib/windowOrGlobal.js -> dist/lib/windowOrGlobal.js=> Complete
@notadamking
Copy link
Author

Solves#227

joeyfigaro, omcg33, probabble, biosis21, and s-kennedy reacted with thumbs up emojijoeyfigaro, s-kennedy, and christopher-theagen reacted with hooray emoji

@notadamking
Copy link
Author

Any reason this hasn't been merged?

@omcg33
Copy link

Please merge with PR!

biosis21, lucas-pessoa, s-kennedy, and christopher-theagen reacted with thumbs up emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@notadamking@omcg33

[8]ページ先頭

©2009-2025 Movatter.jp