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

Upgrade react-router #739

Merged
merged 10 commits into from Mar 28, 2020
Merged

Upgrade react-router #739

merged 10 commits into from Mar 28, 2020

Conversation

yagebu
Copy link
Contributor

@yagebu yagebu commented Mar 8, 2020

Related Issues / Links

Ref #449

Description of Changes

This upgrades react-router to from version 3 to 5. This introduces quite a few changes to how the <Route> components work. Instead of basically just registering routes, they now do the actual rendering. Also, there's now the <Prompt> component to prevent navigation.

Also use function components or components only inheriting from React.Component in some places.

@yagebu yagebu changed the title Frontend Upgrade react-router Mar 8, 2020
@runfalk
Copy link
Member

runfalk commented Mar 8, 2020

Very nice. This is something I've wanted to do for a long time.

I'll try to get this reviewed during next week.

@runfalk runfalk merged commit 5672b97 into lektor:master Mar 28, 2020
@runfalk
Copy link
Member

runfalk commented Mar 28, 2020

Sorry for the delay in handling this. It looks great! 🎉

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.

None yet

2 participants