- Ant Design - UI library.
- Zustand - state management.
- Firebase - File management & CI/CD.
- React Router - Routing solution.
- Sass - extend ant design with some custom css
firebaseConfig.js
initialize firebase, the file is required by theupload component
.store.js
zustand state management, holds the global app state.testsSetup.js
defined match media a bug fix for running tests with Jest.
- Elements - contains the apps elements, used by various components and instances of these components.
- Components - contains the 3 steps and an indicator of what step the user is at.
Each component & the app.js
contains tests to verify that all the content is present and is getting rendered to the DOM
// Encoding functions
// Result: 3a4b2c1d2a
const encode = (input) => {
// Complete function here to return 3a4b2c1d2a
};
encode(aaabbbbccdaa);
const encode = (input) => {
let encodedStr = '';
const charArrs = input.match(/([a-zA-Z])\1*/g) || [];
for (const charArr of charArrs) encodedStr = encodedStr + charArr.length + charArr.charAt(0);
return encodedStr;
};
encode('aaabbbbccdaa');
const sum = () => {
// complete function as instructed
};
// sum(1)(2)(3)(4)()
// Logs 10
const sum = (a) => {
return (b) => (c) => (d) => (e) => console.log(a + b + c + d);
};
sum(1)(2)(3)(4)();