I learn coding patterns by examples. Not blog posts. Not videos. Sometimes documentation. But more often it is through out-in-the-wild code samples.
Let’s use Framer Motion as an example. Its npm project is called (framer-motion
).
To learn from how other folks are using framer-motion
, I regularly peruse code samples I’ve found from searching like this:
- search grep.app for
framer-motion
, filtered by JavaScript language - advanced search on GitHub of code for repositories with
package.json
files containingframer-motion
as a dependency - peruse projects published on
npm
that depend onframer-motion
- search Google for
site:github.com framer-motion -inurl:framer/motion
- search Google for
site:gist.github.com framer-motion
Hope that helps. Happy sleuthing!