An open API service indexing awesome lists of open source software.

https://github.com/epicweb-dev/epic-stack-example-has-js-class


https://github.com/epicweb-dev/epic-stack-example-has-js-class

Last synced: 9 months ago
JSON representation

Awesome Lists containing this project

README

          

# Epic Stack Example: `has-js` class

This is an example implementation of using CSS to ensure that users who don't
have js enabled have as good a user experience as possible without degrading the
experience of users who do have js enabled.

Inspired by [@jjenzz](https://twitter.com/jjenzz/status/1720939490233946300).

Check the commit history for what it took to implement this.

To run this locally:

```sh
git clone https://github.com/kentcdodds/epic-stack-example-has-js-class
cd epic-stack-example-has-js-class
npm install
npm run dev
```

Then open [localhost:3000](http://localhost:3000) in your browser, login as a
user, and go to the create new note page to find the image uploader. Try it with
and without JS enabled to have the full experience.

Or, you could just watch
[this video](https://www.epicweb.dev/tips/turn-progressive-enhancement-up-to-11)!

[![Video player showing a tutorial video with Kent](https://github-production-user-asset-6210df.s3.amazonaws.com/1500684/283592950-87023c27-2400-4226-91c5-6ddc402b4ae5.png)](https://www.epicweb.dev/tips/turn-progressive-enhancement-up-to-11)