r/reactjs • • Jan 29 '20

Show /r/reactjs My portfolio website using next.js

Hey everyone! I just made my personal website using next js. I'd be very happy if you guys could take a look at it and provide feedback.

https://iabhishek.dev.

Thanks!

93 Upvotes

70 comments sorted by

View all comments

Show parent comment

1

u/____0____0____ Jan 29 '20

Interesting. I hadn't considered if I would use any admin/authentication yet, but it might be a good time to try and implement it and get some practice with it. All my my stuff at my current employer is internal facing and doesn't need to be heavily secured, so I don't get too much practice in that realm. I'm curious how next.js made this difficult for you.

For bootstrap, did you use the react-bootstrap reimplimentation of bootstrap js or did you use the official distribution?

If you had to do it again, would you use next or reach for a different tool?

Thanks!

1

u/abhi12299 Jan 29 '20

I started with next js without completely reading the docs. That was why I faced issues authenticating the user in getInitialProps where, on the server you access request object and on the client, you obtain cookies from the browser directly. That thing was very confusing at the first time. But now once I've done it, I'd consider it an easy thing to do.

2. For bootstrap, I tried using bootstrap.js but because of ssr, it complained window being undefined.

3. If I had to do my website again, I'd go for nuxtjs, because it's lightweight and vue does transitions and data binding easier than react.