Coder Social home page Coder Social logo

kdlgates / developer-resume Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.24 MB

This is my simple developer resume for the web as initiated by create-next-app. Was also my first use case for lifting state in React, routing, and Single-Page App local vs. server-side rendering. At time of writing this deployed by Vercel at https://kdlgates.com

Home Page: https://www.kdlgates.com

JavaScript 46.19% CSS 53.81%

developer-resume's People

Contributors

kdlgates avatar

Watchers

 avatar

developer-resume's Issues

Theme Picker Hydration Error

The useLocalStorage custom hook appears to be working just fine, but Next's SSR throws an error about a local and server mismatch.

Can still print the theme value 'blue' but 'offwhite' theme is still maintained on the SSR, frustratingly simply setting it again with the radio button's onChange handler solves it no problem, can't seem to simulate that even with the correct local value. Good motivation to learn more about SSR and pre-rendering, it is frustrating how tricky triggering the re-render with the correct but mismatched local value seems to be.

Next's hydration help article on the error suggets just keeping any state change methods in a useEffect to trigger the parent Component to refresh but still no luck. Got some guidance to consider a rewrite with either a custom hook and using DOM logic for the storage/state loading or consider using the React Themes system and using a ThemeContext wrapper to manage CSS (though the friendly user on Reactiflux who suggested this uses Tailwind to manage CSS so that might be a bit above my level if I'm to solve this this weekend...).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.