Skip to content
No description, website, or topics provided.
TypeScript HTML JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
public
src
.browserslistrc
.eslintrc
.gitignore
.prettierrc
README.md
package.json
tsconfig.json
yarn.lock

README.md

react-plate

Do we still need a redux?

I think, we can manage state of application with Hooks API and Context API of React.

🔫 Killing Point

const GlobalContext = createContext(defaultValue)

export const GlobalProvider = ({ children }: { children: React.ReactNode }) => {
  const [state, dispatch] = useReducer(reducer, globalState)
  const value = useMemo(() => [state, dispatch], [state])

  return <GlobalContext.Provider value={value}>{children}</GlobalContext.Provider>
}

💡 If you don't like TypeScript, you can see the VanillaJS version

Structure

src
├── api
├── components
├── containers
├── modules
├── routes
├── utils
├── App.tsx
└── index.tsx

📦 Packages

Main

etc

Development Setting

More Details

TODO

Project by @Jbee

You can’t perform that action at this time.