Some React experimentations
MIT License
Experimentation with React. Get started!
To start with the syntax. No npm / yarn installation required to test it, but it might be getting old (2016).
Potluck of different examples.
Created from the old starting project which might be mostly deprecated now. Using yarn as it is well integrated with React.
Start with:
yarn start
Run the test with jest using:
yarn test
error [email protected]: The engine "node" is incompatible with this module. Expected version ">= 10.14.2". Got "10.13.0"
Update node to the latest version. If you are using n
(useful when working with different node versions) do:
n latest
Cannot find module '@testing-library/react/types' from 'src/App.test.js'
It may be deprecated and may not have been fixed, but it works if you remove the /types
and use directly:
import { render, screen } from '@testing-library/react';
Example with Chakra UI and React.
Example with Drag and Drop.
Example with React Router.
For learning purposes: