title: Add / Remove 1 day with Moment.js in React
body: <p>I have a div with 2 dates inside, for example (&lt; march 25th - march 26th >), and there are 2 arrows "&lt;" and ">"</p>
  
  <p>If a user presses the "&lt;" arrow, I need to remove 1 day to the 2 dates :
  (&lt; march 25th - march 26th >) becomes (&lt; march 24th - march 25th >),</p>
  
  <p>and if a user presses the ">" arrow, I need to add 1 day to the 2 dates :
  (&lt; march 25th - march 26th >) becomes (&lt; march 26th - march 27th >),</p>
  
  <p>I stored the 2 dates in hooks, and by default, the firstValue is the day of today and the secondValue is 1 week later</p>
  
  <pre><code>const [firstValue, setFirstValue] = useState(
      moment(new Date()).format("dddd Do MMMM YYYY")
    );
  const [secondValue, setSecondValue] = useState(
      moment(new Date())
        .add(1, "weeks")
        .format("dddd Do MMMM YYYY")
  );
  </code></pre>
  
  <p>I tried this when the user presses the "&lt;" arrow :</p>
  
  <pre><code>function previousDay() {
      console.log(firstValue, secondValue);
      setFirstValue(moment(firstValue).remove(1, "days"));
      setSecondValue(moment(secondValue).remove(1, "days"));
  }
  </code></pre>
  
  <p>but I have the error </p>
  
  <pre><code>TypeError: moment__WEBPACK_IMPORTED_MODULE_2___default(...)(...).remove is not a function
  </code></pre>
  
  <p>Can somebody know how can I do that</p>