title: Using class-validator DTO also in front-end
body: <p>A NestJS project uses a <a href="https://docs.nestjs.com/techniques/validation" rel="nofollow noreferrer">ValidationPipe with class-validator</a> to validate POST requests. It would be nice to use the same class-validator DTO in the (react) front-end .</p>
  <p>How could the entities in the DTO be linked to react elements ?</p>
  <p><sub>This may be similar to <a href="https://stackoverflow.com/questions/54412673/how-to-sync-front-end-and-back-end-validation">How to Sync Front end and back end validation</a>, but more focused on specific tools.</sub></p>