8000 GitHub - mblancodev/studious-octo-fortnight
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

mblancodev/studious-octo-fortnight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

studious-octo-fortnight

Frontend Developer Home Test (React & React Redux)

Task 1: React & Redux

Create a simple React application that fetches data from an API and displays it in a list. Use React Redux for state management.

  1. Set up a React project using create-react-app.👍
  2. Create a Redux store with a reducer to manage the application state.👍
  3. Fetch data from a public API (e.g., JSONPlaceholder) using Redux actions.👍
  4. Display the fetched data in a component as a list.👍

Task 2: Mapbox GL

Integrate Mapbox GL into your React application.

  1. Get a free Mapbox API key. 👍
  2. Display a Mapbox map in a separate React component.👍
  3. Add a marker to the map at a specific location.👍

Task 3: Sass & CSS

Use Sass to style your React components.👍

  1. Create a reusable button component with different styles (primary, secondary, etc.).👍
  2. Implement responsive design for your application.👍

Task 4: Algorithm

Implement a function in JavaScript that checks if a given word is a palindrome.👍

function isPalindrome(word) {
  if (!word) {
    return false; // Retorna falso si la cadena está vacía
  }
  
  const regex = /[^a-zA-Z0-9]/g;
  const textoOriginal = word.toLowerCase().replace(regex, '');

  const textoInvertido = textoOriginal.split('').reverse().join('');

  return textoOriginal === textoInvertido;
}

// Ejemplo de uso
const palabra = "Anita lava la tina";
const resultado = isPalindrome(palabra);

if (resultado) {
  console.log(`"${palabra}" es un palíndromo.`);
} else {
  console.log(`"${palabra}" no es un palíndromo.`);
}


// Example usage:
console.log(isPalindrome("level")); // Should return true
console.log(isPalindrome("hello")); // Should return false

Submission Instructions:

  1. Fork this repository.👍
  2. Create a branch with your name.👍
  3. Complete the tasks in your branch.👍
  4. Commit your changes and push to your forked repository.👍
  5. Create a pull request from your branch to the master branch.👍

Additional Notes:

  • Your code should be clean, well-organized, and follow best practices.
  • Provide comments where necessary to explain your thought process.
  • Include a README.md file explaining how to run your application and any additional notes.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
0