Intl & Async Routes in React Router v4
Edit: After writing this and refining the approach, I've released a github package for everyone! react-router-async-routing
After a two week hiatus from Christmas vacation, I'm back with some code. I came up with this idea today and couldn't wait to post it for others. I've read over yahoo's react-intl but I just don't like the approach very much. I've heard other people say the same. When you don't like something, what do you do? Go and do it yourself! That's what I did and what I came up with is something I'm very happy with. We'll see how you feel about it.
Let me preface this by saying I have almost no experience doing intl stuff. I haven't done an insane amount of research. The things I have seen feel over engineered. The solution I came up with seems to be the most simple way to do it. If I'm wrong, leave a comment and I'll update this post with a better solution!
Folder Structure
modules
├── entry
│ └── index.js
├── intl
│ ├── README.md
│ ├── about
│ │ └── en-us.js
│ ├─…
Keep reading with a 7-day free trial
Subscribe to zach.codes to keep reading this post and get 7 days of free access to the full post archives.