Hello,
I’m new to Cursor, and as I understand it, it’s important to update your .cursor/rules
as you work on the project. I’ve noticed that the chat was giving me certain responses that were incorrect or suggested code with older versions of the libraries I’m using.
The point is: I added new rules, but the next chat did not take the feedback into account. Did I miss a force sync step? Did I fail to explain what the LLM should not do?
Very concretely, I added:
- In ReScript, you cannot add text as a child of a React component directly.
`<h1 className="text-4xl font-bold mb-4">404 - Page Not Found</h1>` is wrong. The parser does not accept this.
It should be `<h1 className="text-4xl font-bold mb-4">{React.string("404 - Page Not Found")}</h1>`.
Everything should be a `React.element` in ReScript. So, you need to use primitive conversion functions like `React.string`, `React.int`, `React.float`, and `React.array`.
I’m trying to teach it that ReScript JSX is slightly different from vanilla JSX. Is my description off? Should I provide more examples?
I was really disappointed that it still suggested incorrect syntax in subsequent requests (using new chats).
Where can I improve things on my end?