Create a Chrome Extension with React and Webpack - by Traveling Tech Guy
In this session we'll cover:
- What are Chrome extensions and why should you care? (3 minutes)
- How to create a basic Chrome extension (10 minutes)
- How to add React to the view parts, and how to use Webpack to package the extension (20 minutes)
- Tie it all togather into a functional extension (10 minutes)
- Q&A
The repo contains 4 folders:
- Basic - a basic extension that does nothing.
- Reactive - an extension that demonstartes working with React and Webpack, as well as advanced extension concepts.
- StockQuote - our final extension, using all we've learned to get current stock quotes.
- AgentOrange - a bonus extension, showing how to use a content script to manipulate a loaded page.
The docs folder contains the presentation, and can be viewed online at https://travelingtechguy.github.io/svcc-chrome-extension.
Comment: All the code attached is functional and minimal. It could probably be refactored to look nicer, or more OO, or more React-y. But that's not the purpose of this session. Feel free to improve on the code, and make it nicer, and even more functional. My sole request is: if you find bugs, or logical errors, or if the technology moves on, and certain concepts require updates - please open a PR. It'll be my pleasure to update this repo, and keep it current and working.