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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
notadamking wants to merge 3 commits into fullstackreact:master
base: master
Choose a base branch
Loading
from notadamking:master

Conversation

Copy link

@notadamking notadamking commented Dec 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 ran make 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.js
src/components/Circle.js -> dist/components/Circle.js
src/components/HeatMap.js -> dist/components/HeatMap.js
src/components/InfoWindow.js -> dist/components/InfoWindow.js
src/components/Marker.js -> dist/components/Marker.js
src/components/Polygon.js -> dist/components/Polygon.js
src/components/Polyline.js -> dist/components/Polyline.js
src/index.js -> dist/index.js
src/lib/GoogleApi.js -> dist/lib/GoogleApi.js
src/lib/ScriptCache.js -> dist/lib/ScriptCache.js
src/lib/String.js -> dist/lib/String.js
src/lib/arePathsEqual.js -> dist/lib/arePathsEqual.js
src/lib/cancelablePromise.js -> dist/lib/cancelablePromise.js
src/lib/windowOrGlobal.js -> dist/lib/windowOrGlobal.js
=> Complete
Copy link
Author

Solves #227

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

Copy link
Author

Any reason this hasn't been merged?

Copy link

omcg33 commented May 30, 2019

Please merge with PR!

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

Sign up for free to 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.

AltStyle によって変換されたページ (->オリジナル) /