Download wp-calypso/client/signup/test/mocks/lib/user/index.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 224 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/signup/test/mocks/lib/user/index.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/signup/test/mocks/lib/user/index.js
-
curl -L -o index.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/signup/test/mocks/lib/user/index.js
224 Bytes
| /** | |
| * User stub | |
| * | |
| */ | |
| let isLoggedIn = false; | |
| export default function () { | |
| return { | |
| get: function () { | |
| return isLoggedIn; | |
| }, | |
| setLoggedIn: function ( newIsLoggedIn ) { | |
| isLoggedIn = newIsLoggedIn; | |
| }, | |
| }; | |
| } | |